mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 12:20:40 -07:00
fix: remove limit on operator char length
The matchOperator function has a default value of str.length for the end parameter
This commit is contained in:
@@ -62,7 +62,7 @@ export class Tokenizer {
|
||||
}
|
||||
readOperator (): OperatorToken | undefined {
|
||||
this.skipBlank()
|
||||
const end = matchOperator(this.input, this.p, this.trie, this.p + 8)
|
||||
const end = matchOperator(this.input, this.p, this.trie)
|
||||
if (end === -1) return
|
||||
return new OperatorToken(this.input, this.p, (this.p = end), this.file)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user