diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-05-09 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-05-09 00:00:00 +0000 |
commit | c9fdd29a4e194bca45f64a0f53912a109595491409dbfcf0dc098ffae3c6a646 (patch) | |
tree | ef840cbb1a9c84138ca8d0476b4599ba189ac17ca64e988e076bf0040db3ae6e | |
parent | b02433e5b1c7f7c469d80c2fafb58525f51094fa8e2c88fde14a0428d00a4d72 (diff) | |
download | hugo-theme-journal-c9fdd29a4e194bca45f64a0f53912a109595491409dbfcf0dc098ffae3c6a646.tar.gz hugo-theme-journal-c9fdd29a4e194bca45f64a0f53912a109595491409dbfcf0dc098ffae3c6a646.zip |
Fix extraneous matches
-rw-r--r-- | layouts/_default/single.gmi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index cba2c68..f1218a4 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -9,7 +9,7 @@ # {{ .Name | safeHTML }} {{ $content := .RawContent }} {{- $scratch := newScratch }} -{{- $chunks := findRESubmatch `(?sm)(?:(.*?)(^\x60{3}[^\x60].*?^\x60{3}$))|(.*$)` $content }} +{{- $chunks := findRESubmatch `(?sm)(?:(.+?)(^\x60{3}[^\x60].*?^\x60{3}$))|(.+$)` $content }} {{- $ref_index := 0 }} {{- range $chunks }} |