diff options
author | Joe Mooring <joe.mooring@veriphor.com> | 2022-11-17 20:00:49 -0800 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-11-18 09:34:10 +0100 |
commit | 00fe7e0408fe1571388608f358faf7dacb9cbaaf (patch) | |
tree | 12cc9e31ca6cbc440ec3e61e7b3075b5247643ac /parser/pageparser/item.go | |
parent | df85cb9ae201a892cf53e6bfebdd5f0fe0fde9bd (diff) |
hugo/parser: Fix shortcode boolean param parsing
Fixes #10451
Diffstat (limited to 'parser/pageparser/item.go')
-rw-r--r-- | parser/pageparser/item.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/pageparser/item.go b/parser/pageparser/item.go index 2083be70a..d4dcc2785 100644 --- a/parser/pageparser/item.go +++ b/parser/pageparser/item.go @@ -215,7 +215,7 @@ const ( ) var ( - boolRe = regexp.MustCompile(`^(true$)|(false$)`) + boolRe = regexp.MustCompile(`^(true|false)$`) intRe = regexp.MustCompile(`^[-+]?\d+$`) floatRe = regexp.MustCompile(`^[-+]?\d*\.\d+$`) ) |