diff options
author | Alex Scerba <alex@scerba.org> | 2024-09-28 12:28:02 -0400 |
---|---|---|
committer | Alex Scerba <alex@scerba.org> | 2024-09-28 12:28:02 -0400 |
commit | 92264ea6c1a27a6d834a358626a2b3004466e131 (patch) | |
tree | f6b9cd307ae10d3a5150da497bf3cf7d4915fa21 /cmd | |
parent | c8914afe41f588aead647023580c84b4e5e64f11 (diff) |
Switch image class to more conventional style
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/http/load.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/http/load.go b/cmd/http/load.go index d63d7ce..8a623ab 100644 --- a/cmd/http/load.go +++ b/cmd/http/load.go @@ -85,7 +85,7 @@ func (app *application) readFile(location string) (p *Post, err error) { } // thumbnail image - imagePattern := regexp.MustCompile(`<img src="(.+)" class="mainImage"( alt="(.+)")* />`) + imagePattern := regexp.MustCompile(`<img src="(.+)" class="main-image"( alt="(.+)")* />`) matchingImage := imagePattern.FindStringSubmatch(string(fileContent)) var image string |