Skip to content
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

filter value with "." getting appended with "/" in the multiselect #142

Closed
ghost opened this issue Jan 12, 2015 · 2 comments
Closed

filter value with "." getting appended with "/" in the multiselect #142

ghost opened this issue Jan 12, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 12, 2015

Hi Buddy ,

The multiselect filter with . in the search value is giving a "/" append to the value before "." i found it is happending in the line

stringForSearch = stringForSearch.replace(/([.*+?^=!:${}()[]/])/g, "$1");

of doFilterMultiSelect module

can you help me in understaning the need of above code so that i can modify it as needed with out effecting other chnages.

Example
BC01.03|BC03.01 has become.
BC01.03|BC03.01

@vedmack
Copy link
Owner

vedmack commented Jan 14, 2015

Hi,

That code escapes regex characters, so later on I can use that string to perform regex filtering,
for example, if user types 20$ in filter input, I have to escape the $, otherwise when doing the filtering it would be treated as a regex sign and not a plain $ (dollar)

Paste those problematic values in your multi select.

@vedmack
Copy link
Owner

vedmack commented Jan 20, 2015

Found out that the | was doing the troubles, fixed it in 0.8.7.beta.9 you can grab it from https://github.com/vedmack/yadcf/blob/master/lab/jquery.dataTables.yadcf.js

@vedmack vedmack closed this as completed Jan 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant