diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-06-28 16:06:16 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-06-28 16:06:16 +0200 |
commit | de37455ec73cffd039b44e8f6c62d2884b1d6bbd (patch) | |
tree | 91901632ae5639f24f2ed47acabb79305eacac00 /hugolib/shortcodeparser.go | |
parent | 282f6035e7c36f8550d91033e3a66718468c6c8b (diff) |
hugolib: Allow forward slash in shortcode names
Fixes #4886
Diffstat (limited to 'hugolib/shortcodeparser.go')
-rw-r--r-- | hugolib/shortcodeparser.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hugolib/shortcodeparser.go b/hugolib/shortcodeparser.go index c57ff9b3c..32aa8b47a 100644 --- a/hugolib/shortcodeparser.go +++ b/hugolib/shortcodeparser.go @@ -464,6 +464,8 @@ Loop: for { switch r := l.next(); { case isAlphaNumericOrHyphen(r): + // Allow forward slash inside names to make it possible to create namespaces. + case r == '/': default: l.backup() word := l.input[l.start:l.pos] |