diff options
author | William Carroll <wpcarro@gmail.com> | 2023-01-20T23·47-0800 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-01-20T23·50+0000 |
commit | e20c0d2fbf5dfb1355c1375fd6ae1f9bf1b8b263 (patch) | |
tree | ca2cedf8003b31809756a7ed3b55b558b3cbb662 /users/wpcarro/slx.js/index.js | |
parent | 7f37cfb184780748ba9c07b483635699ba0a0af2 (diff) |
fix(wpcarro/slx): Fix LTE/GTE parsing error r/5718
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>
Diffstat (limited to 'users/wpcarro/slx.js/index.js')
-rw-r--r-- | users/wpcarro/slx.js/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/users/wpcarro/slx.js/index.js b/users/wpcarro/slx.js/index.js index d255bb99f92b..3729978c75ef 100644 --- a/users/wpcarro/slx.js/index.js +++ b/users/wpcarro/slx.js/index.js @@ -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] === '>') { |