mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -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 {
|
readOperator (): OperatorToken | undefined {
|
||||||
this.skipBlank()
|
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
|
if (end === -1) return
|
||||||
return new OperatorToken(this.input, this.p, (this.p = end), this.file)
|
return new OperatorToken(this.input, this.p, (this.p = end), this.file)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user