From 7677f848c0c57335dd1c4f1e3ec251fbf9b1663f Mon Sep 17 00:00:00 2001 From: Ameya Apte Date: Wed, 12 Jan 2022 18:42:47 +0530 Subject: [PATCH] fix: remove limit on operator char length The matchOperator function has a default value of str.length for the end parameter --- src/parser/tokenizer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/tokenizer.ts b/src/parser/tokenizer.ts index 7117f73579..511d7af62a 100644 --- a/src/parser/tokenizer.ts +++ b/src/parser/tokenizer.ts @@ -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) }