aboutsummaryrefslogtreecommitdiff
path: root/reader/rewrite/rewrite_functions.go
diff options
context:
space:
mode:
Diffstat (limited to 'reader/rewrite/rewrite_functions.go')
-rw-r--r--reader/rewrite/rewrite_functions.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/reader/rewrite/rewrite_functions.go b/reader/rewrite/rewrite_functions.go
index 4348584f..fee2a85e 100644
--- a/reader/rewrite/rewrite_functions.go
+++ b/reader/rewrite/rewrite_functions.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
-package rewrite
+package rewrite // import "miniflux.app/reader/rewrite"
import (
"fmt"
@@ -14,7 +14,7 @@ import (
var (
youtubeRegex = regexp.MustCompile(`youtube\.com/watch\?v=(.*)`)
- imgRegex = regexp.MustCompile(`<img [^>]+>`)
+ imgRegex = regexp.MustCompile(`<img [^>]+>`)
)
func addImageTitle(entryURL, entryContent string) string {
@@ -72,13 +72,13 @@ func addDynamicImage(entryURL, entryContent string) string {
changed = true
if img.Is("img") {
- img.SetAttr("src",srcAttr)
+ img.SetAttr("src", srcAttr)
} else {
altAttr := img.AttrOr("alt", "")
img.ReplaceWithHtml(`<img src="` + srcAttr + `" alt="` + altAttr + `"/>`)
}
- break;
+ break
}
}
})