Skip to content

Words which incorporate "and", "or" or "not" confuse the parser. #1

Open
@soferio

Description

@soferio

If you attempt to filter using the word "Notice", it wil be treated as "not" "ice".

The regexes which identify the "and", "or", "not" operators should be modified to terminate with a word boundary regex, being "\b". So my proposal is that lines 38, 46 and 50 in expression.js be modified as follows:

Line 38 would change from:

return this.match(/^NOT/i).toUpperCase();

to:

return this.match(/^NOT\b/i).toUpperCase();

and lines 46 and 50 would be similarly modified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions