boolean-parser-js
boolean-parser-js copied to clipboard
Sanity check for complex Boolean query pattern logic.
Hi, if you invoke the parser with string '(a AND b) OR c' will work but with ' (a AND b) OR c' it will end with : Unhandled rejection...
Hi, I am using your nice lib in [jca-filter](https://github.com/thipages/jca-filter) having adapted it for browser. Currently it is 'hard coded' in the lib. Is it possible to have an esm version,...
Fixes issues #5 ... I also have a fix for #4 in the future that I should have out soonish. Thanks for posting this library.
When doing: `IBM AND apple stuff AND (IBM OR Microsoft)` it returns: ``` [ ["IBM","IBM","apple stuff"], ["Microsoft","IBM","apple stuff"] ] ``` 'IBM' listed twice, should de-dupe and remove one.
When putting words in between quotes, threat it as one word, instead of 2 separate words. ``` "the mask" AND boat ``` Becomes: ``` [[The Mask, boat]] ```
For instance, when setting the `defaultSplitTerm` to `AND`, you can reduce the following query in length: ``` a AND b AND c ``` Becomes: ``` a b c ``` This...