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:
Ameya Apte
2022-01-12 21:24:08 +08:00
committed by Jun Yang
parent c7d2e1f1f4
commit 7677f848c0
+1 -1
View File
@@ -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)
}