mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
Make end brace peek stricter and fix the test
This commit is contained in:
@@ -211,7 +211,8 @@ export class Tokenizer {
|
||||
this.p++
|
||||
const prop = this.readQuoted()
|
||||
if (!prop) return
|
||||
this.readTo(']')
|
||||
if (this.peek() !== ']') return
|
||||
this.p++
|
||||
return new PropertyAccessToken(prop, [], this.p)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user