We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi @TomFrost
Minus is not interpreted properly...
[1, 2, 3] => OK https://czosel.github.io/jexl-playground/#/?input=%5B1%2C%202%2C%203%5D
[-1, 2, 3] => OK https://czosel.github.io/jexl-playground/#/?input=%5B-1%2C%202%2C%203%5D
[-1, -2, 3] => Error: Token - (binaryOp) unexpected in expression: [-1, - https://czosel.github.io/jexl-playground/#/?input=%5B-1%2C%20-2%2C%203%5D
Same issue with functions like: min(1, -2, 3)
The text was updated successfully, but these errors were encountered:
If I'm not mistaken in the file /lib/Lexer.js
The variable minusNegatesAfter should also contains 'comma'... const minusNegatesAfter = [ 'binaryOp', 'unaryOp', 'openParen', 'openBracket', 'question', 'colon' ]
'comma'
const minusNegatesAfter = [ 'binaryOp', 'unaryOp', 'openParen', 'openBracket', 'question', 'colon' ]
Sorry, something went wrong.
Do you have any update on this issue, please?
Hi, sorry for the late response on this! Spot-on diagnosis -- I'll look to include this in the next release.
@TomFrost Opened a pull request (#122) with the suggested change from @OlivierB-OB
No branches or pull requests
Hi @TomFrost
Minus is not interpreted properly...
[1, 2, 3] => OK
https://czosel.github.io/jexl-playground/#/?input=%5B1%2C%202%2C%203%5D
[-1, 2, 3] => OK
https://czosel.github.io/jexl-playground/#/?input=%5B-1%2C%202%2C%203%5D
[-1, -2, 3] => Error: Token - (binaryOp) unexpected in expression: [-1, -
https://czosel.github.io/jexl-playground/#/?input=%5B-1%2C%20-2%2C%203%5D
Same issue with functions like: min(1, -2, 3)
The text was updated successfully, but these errors were encountered: