summaryrefslogtreecommitdiffstats
path: root/resources/page/permalinks.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-01-17 11:00:38 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-01-17 12:49:16 +0100
commit671f64b2eba077e2456a32feabfa94e5dc8af511 (patch)
treebb1116fe1f45f07b1739b6237f62738ba0cbf137 /resources/page/permalinks.go
parent2fb40ece5df38c3d6565cfd69ae194dbe0126f53 (diff)
Fix permalinks issue with repeated sections
Fixes #10377
Diffstat (limited to 'resources/page/permalinks.go')
-rw-r--r--resources/page/permalinks.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/page/permalinks.go b/resources/page/permalinks.go
index c31d22a3c..dbf10220c 100644
--- a/resources/page/permalinks.go
+++ b/resources/page/permalinks.go
@@ -176,7 +176,7 @@ func (l PermalinkExpander) parse(patterns map[string]string) (map[string]func(Pa
// can return a string to go in that position in the page (or an error)
type pageToPermaAttribute func(Page, string) (string, error)
-var attributeRegexp = regexp.MustCompile(`:\w+(\[.+\])?`)
+var attributeRegexp = regexp.MustCompile(`:\w+(\[.+?\])?`)
// validate determines if a PathPattern is well-formed
func (l PermalinkExpander) validate(pp string) bool {