diff options
| author | thinkpadmaster <a.scerba02@gmail.com> | 2023-07-14 00:47:00 -0500 |
|---|---|---|
| committer | thinkpadmaster <a.scerba02@gmail.com> | 2023-07-14 00:47:00 -0500 |
| commit | 0c7cc08ad4bcb911a7dd8e3c17eb4e194c1447e2 (patch) | |
| tree | 1650fa9b2759c7c8b69fdb317b97779919c26f4b | |
| parent | 9ae34b4263dd3342ac460e9b0120d46cb4fca7e3 (diff) | |
Update to new image syntax
| -rw-r--r-- | load.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
