fix(wpcarro/slx): Fix LTE/GTE parsing error
Fix: `i += 2`. Welp! Change-Id: I06061f0c5bb5283c8b85bd3f5a6e52e2eb59d4f5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7885 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com>
This commit is contained in:
parent
7f37cfb184
commit
e20c0d2fbf
2 changed files with 8 additions and 4 deletions
|
|
@ -166,7 +166,7 @@ function tokenize(x) {
|
|||
}
|
||||
if (x[i] === '<' && i + 1 < x.length && x[i + 1] === '=') {
|
||||
result.push(['COMPARE', 'LTE']);
|
||||
i += 1;
|
||||
i += 2;
|
||||
continue;
|
||||
}
|
||||
if (x[i] === '<') {
|
||||
|
|
@ -176,7 +176,7 @@ function tokenize(x) {
|
|||
}
|
||||
if (x[i] === '>' && i + i < x.length && x[i + 1] === '=') {
|
||||
result.push(['COMPARE', 'GTE']);
|
||||
i += 1;
|
||||
i += 2;
|
||||
continue;
|
||||
}
|
||||
if (x[i] === '>') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue