-
Notifications
You must be signed in to change notification settings - Fork 753
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
How to use filter-select when there are keywords like 'OR', 'AND' in table cells? #1505
Comments
Hi @thobho! The filter's default setting for "and", "or" and "to" can be modified by providing a $.extend($.tablesorter.language, {
to: "-",
or: "\\|", // escape any special regexp characters, for now
and: "&&"
}); The settings must not include surrounding spaces, and can not be an empty string. In the next update, I'll catch the above problems to:
Related: #1089 (comment) & #1101 |
I ended up reverting the automatic escaping of special regular expression characters. It's already documented that it must be done and the change would not be backwards compatible; but the update will still trim surrounding spaces and allow empty strings to be set. |
I'm guessing this issue has been resolved, so I'm going to close it. If you continue to have problems, please feel free to continue the discussion in this thread. |
Hi!
I have a problem with filter-select option. I have in table column values like 'temperature value or humidity'. I dropdown list with correct entries but when I choose this one with the word "OR" I get no correct filter. I tried to add class 'filter-exact' but it still does not work.
Best regards,
Thobho
The text was updated successfully, but these errors were encountered: