aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthinkpadmaster <a.scerba02@gmail.com>2023-07-14 00:47:00 -0500
committerthinkpadmaster <a.scerba02@gmail.com>2023-07-14 00:47:00 -0500
commit0c7cc08ad4bcb911a7dd8e3c17eb4e194c1447e2 (patch)
tree1650fa9b2759c7c8b69fdb317b97779919c26f4b
parent9ae34b4263dd3342ac460e9b0120d46cb4fca7e3 (diff)
Update to new image syntax
-rw-r--r--load.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/load.go b/load.go
index b6866e3..45be451 100644
--- a/load.go
+++ b/load.go
@@ -110,7 +110,7 @@ func (app *application) readFile(location string) (p *Post, err error) {
}
// thumbnail image
- imagePattern := regexp.MustCompile(`<img class="mainImage" src="(.+)"( alt="(.+)")*>`)
+ imagePattern := regexp.MustCompile(`<img src="(.+)" class="mainImage"( alt="(.+)")* />`)
imageMatching := imagePattern.FindStringSubmatch(string(fileContent))
var image string