opened
machupichu123
username_0
I found a problem caused by a different version.

I can't search the symbols `#` and `-` when using a var 2.3.0.

For example, here is the code.
[https://jsfiddle.net/veduozjf/](https://jsfiddle.net/veduozjf/)

In case of I use var 1.5.0 result shows 'Mark #Twain',
But var 2.3.0 shows nothing.
function is not wark at item option at var 2.3.0 
issue
created
sheffieldnick
username_1
I think it is probably a bug in `setSearchString()` where it is escaping regular expression characters (like #, -, etc) but the new faster multiword search code in v2.3.0 doesn't use regexp, so those characters shouldn't be escaped?
comment
created
machupichu123
username_0
Thank you. I solved it by commenting out line 744 of 2.3.0.

744 s = s.replace(/[-[\]{}()*+?.,\\^$|#]/g, '\\$&'); // Escape regular expression characters
↓
744 // s = s.replace(/[-[\]{}()*+?.,\\^$|#]/g, '\\$&'); // Escape regular expression characters
comment
created
machupichu123
username_0
Thank you. I solved it by commenting out line 744 of 2.3.0.

744 s = s.replace(/[-[]{}()+?.,\^$|#]/g, '\$&'); // Escape regular expression characters
↓
744 // s = s.replace(/[-[]{}()+?.,\^$|#]/g, '\$&'); // Escape regular expression characters
comment
created
machupichu123
username_0
I am expecting great things of you!
What do you think of this issue?
[https://github.com/javve/list.js/issues/698](https://github.com/javve/list.js/issues/698)
comment
created
sheffieldnick
username_1
I suggest renaming this issue to something specific, like "Search on regexp characters broken by v2.3.0"
comment
created
machupichu123
username_0
I Fixed the title.
Why did you thumbs down?
Are you angry with me, by any chance?
I'm concerning about that if my English makes sense or not.
comment