(u string)
| 11 | const urlTokenPlain = "plain" |
| 12 | |
| 13 | func (p *Parser) preprocessURL(u string) string { |
| 14 | for _, repl := range p.config.URLReplacements { |
| 15 | u = repl.Regexp.ReplaceAllString(u, repl.Replacement) |
| 16 | } |
| 17 | |
| 18 | if len(p.config.BaseURL) == 0 || strings.HasPrefix(u, p.config.BaseURL) { |
| 19 | return u |
| 20 | } |
| 21 | |
| 22 | return fmt.Sprintf("%s%s", p.config.BaseURL, u) |
| 23 | } |
| 24 | |
| 25 | func (p *Parser) decodeBase64URL(ctx context.Context, parts []string) (string, string, error) { |
| 26 | var format string |
no outgoing calls
no test coverage detected