hugolib: Allow forward slash in shortcode names

Fixes #4886
This commit is contained in:
Bjørn Erik Pedersen 2018-06-28 16:06:16 +02:00
parent 282f6035e7
commit de37455ec7
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
2 changed files with 5 additions and 0 deletions

View file

@ -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]