diff --git a/parser/parser.go b/parser/parser.go index 9204ed2..3ad0345 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -906,7 +906,7 @@ func (p *parser) readTemplate() string { } } } - if i < p.length && p.in[i] == '%' { + if p.in[i] == '%' { i++ break }