summaryrefslogtreecommitdiffhomepage
path: root/transform/absurl.go
diff options
context:
space:
mode:
Diffstat (limited to 'transform/absurl.go')
-rw-r--r--transform/absurl.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/transform/absurl.go b/transform/absurl.go
index 12f616eea..6fc62adcf 100644
--- a/transform/absurl.go
+++ b/transform/absurl.go
@@ -7,15 +7,15 @@ import (
var absURLInit sync.Once
var ar *absURLReplacer
-// for performance reasons, we reuse the first baseUrl given
-func initAbsurlReplacer(baseURL string) {
+// for performance reasons, we reuse the first baseURL given
+func initAbsURLReplacer(baseURL string) {
absURLInit.Do(func() {
- ar = newAbsurlReplacer(baseURL)
+ ar = newAbsURLReplacer(baseURL)
})
}
func AbsURL(absURL string) (trs []link, err error) {
- initAbsurlReplacer(absURL)
+ initAbsURLReplacer(absURL)
trs = append(trs, func(content []byte) []byte {
return ar.replaceInHTML(content)
@@ -24,7 +24,7 @@ func AbsURL(absURL string) (trs []link, err error) {
}
func AbsURLInXML(absURL string) (trs []link, err error) {
- initAbsurlReplacer(absURL)
+ initAbsURLReplacer(absURL)
trs = append(trs, func(content []byte) []byte {
return ar.replaceInXML(content)