New issue
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
Expressions with Spaces #14
Comments
Use single quotes: var e = "'a b' > 3"
var f = compileExpression(e)
f({"a b": 1}) // 0
f({"a b": 4}) // 1 |
met the same issue, tried using quotes, but it doesn't work, showing: Unrecognized text error Any advice? |
If you want help, show the code that isn't working. To debug this yourself, open a page that loads filtrex. Then open the javascript console and enter in the code from #14 (comment). Change the expression to match your input and re-test. |
I am using the same example you replied @jfinch1991 , the code is as follows: function hello() { Uncaught Error: Lexical error on line 1. Unrecognized text. Thanks for advice |
Works for me. Try running the tests, in particular check the test for "quoted symbols" passes. To be sure, you can add a test case with whitespace:
If the tests work, verify your version of filtrex.js is up to date. |
Thanks for your reply. I cloned this project and run the tests, all passed. But in my project, I installed filtrex(version: 0.5.4) through npm. When I run the same test('quoted symbol'), it will pop up the errors above. Is the filtrex version in node repository the latest one? Thanks. |
Any updates about the issue? Thanks |
The issue was caused by NPM not being up-to-date. As of 2019 this is no longer the case and the NPM package is being actively maintained again. |
Urgent: GitHub Account Security Alert!Hello, We've detected an unusual access to your GitHub account. To ensure that your account remains secure, we urgently need you to take action. What You Need To Do:
Thank you for your prompt attention to this matter to ensure the security of your account. If you did not initiate this access, please contact us immediately. Best Regards, |
Im trying to get this to parse expressions with spaces e.g. Net Income > 10000. I have tried a few things like wrapping with quotes "Net Income" but that hasn't worked. Any ideas?
The text was updated successfully, but these errors were encountered: