Skip to content

Commit 7677f84

Browse files
ameyaapte1harttle
authored andcommitted
fix: remove limit on operator char length
The matchOperator function has a default value of str.length for the end parameter
1 parent c7d2e1f commit 7677f84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/tokenizer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class Tokenizer {
6262
}
6363
readOperator (): OperatorToken | undefined {
6464
this.skipBlank()
65-
const end = matchOperator(this.input, this.p, this.trie, this.p + 8)
65+
const end = matchOperator(this.input, this.p, this.trie)
6666
if (end === -1) return
6767
return new OperatorToken(this.input, this.p, (this.p = end), this.file)
6868
}

0 commit comments

Comments
 (0)