diff options
Diffstat (limited to 'hugolib/shortcodeparser.go')
-rw-r--r-- | hugolib/shortcodeparser.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/shortcodeparser.go b/hugolib/shortcodeparser.go index 5621a382f..2efebbe4b 100644 --- a/hugolib/shortcodeparser.go +++ b/hugolib/shortcodeparser.go @@ -325,7 +325,7 @@ func lexShortcodeLeftDelim(l *pagelexer) stateFunc { func lexShortcodeComment(l *pagelexer) stateFunc { posRightComment := strings.Index(l.input[l.pos:], rightComment) - if posRightComment < 0 { + if posRightComment <= 1 { return l.errorf("comment must be closed") } // we emit all as text, except the comment markers |