summaryrefslogtreecommitdiffhomepage
path: root/transform/absurlreplacer.go
diff options
context:
space:
mode:
Diffstat (limited to 'transform/absurlreplacer.go')
-rw-r--r--transform/absurlreplacer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/transform/absurlreplacer.go b/transform/absurlreplacer.go
index a3c68eac9..2f2a5bd53 100644
--- a/transform/absurlreplacer.go
+++ b/transform/absurlreplacer.go
@@ -120,7 +120,7 @@ func checkCandidate(l *contentlexer) {
}
if bytes.HasPrefix(l.content[l.pos:], m.match) {
- // check for schemaless urls
+ // check for schemaless URLs
posAfter := l.pos + len(m.match)
if int(posAfter) >= len(l.content) {
return
@@ -196,7 +196,7 @@ type absURLReplacer struct {
xmlMatchers []absURLMatcher
}
-func newAbsurlReplacer(baseURL string) *absURLReplacer {
+func newAbsURLReplacer(baseURL string) *absURLReplacer {
u, _ := url.Parse(baseURL)
base := strings.TrimRight(u.String(), "/")