From c9fdd29a4e194bca45f64a0f53912a109595491409dbfcf0dc098ffae3c6a646 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Tue, 9 May 2023 00:00:00 +0000 Subject: Fix extraneous matches --- layouts/_default/single.gmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts') 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 }} -- cgit v1.2.3