Skip to content

Commit

Permalink
fix: remove limit on operator char length
Browse files Browse the repository at this point in the history
The matchOperator function has a default value of str.length for the end parameter
  • Loading branch information
ameyaapte1 authored and harttle committed Jan 12, 2022
1 parent c7d2e1f commit 7677f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/tokenizer.ts
Expand Up @@ -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)
}
Expand Down

0 comments on commit 7677f84

Please sign in to comment.