aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-05-09 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-05-09 00:00:00 +0000
commitc9fdd29a4e194bca45f64a0f53912a109595491409dbfcf0dc098ffae3c6a646 (patch)
treeef840cbb1a9c84138ca8d0476b4599ba189ac17ca64e988e076bf0040db3ae6e
parentb02433e5b1c7f7c469d80c2fafb58525f51094fa8e2c88fde14a0428d00a4d72 (diff)
downloadhugo-theme-journal-c9fdd29a4e194bca45f64a0f53912a109595491409dbfcf0dc098ffae3c6a646.tar.gz
hugo-theme-journal-c9fdd29a4e194bca45f64a0f53912a109595491409dbfcf0dc098ffae3c6a646.zip
Fix extraneous matches
-rw-r--r--layouts/_default/single.gmi2
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 }}