Hello,
I saw one bug in quicksearch ad my table. When I use plugin to search one element, sometimes result returns is wrong because my search is done on two elements.
For exemple, if my table is :
colonne 1
colonne 2
colonne 3
Line 1
abcde
fghi
Line 2
abcd
efgh
If i search " de ", line 1 is returns but line 2 too because "d
e" is ok for this search. It's possible to resolve this problem is changing the js code ?
Hi,
thank you for your reply. I looked code of jquery.quickseacH.js and I saw where query is created.
My problem is resolved if I add space at end this line
Before : var output = input.replace(new RegExp('<[^<]+\>', 'g'), "");
After : var output = input.replace(new RegExp('<[^<]+\>', 'g'), " ");
Now, with input
<td>abcde</td>
<td>fghi</td>
var output is "abcde fghi" and not "abcdefghi" and my search "defh" doesn't work.
Good job on this plugins and I'm happy to use this in my website. And thank you for your help.
Hello, I saw one bug in quicksearch ad my table. When I use plugin to search one element, sometimes result returns is wrong because my search is done on two elements. For exemple, if my table is :
If i search " de ", line 1 is returns but line 2 too because "d
Thank you for your help and your reply.
Thanks for reporting, I'll see what I can do.
For now, are you able to create a better
prepareQuery
function ?See https://github.com/DeuxHuitHuit/quicksearch/blob/master/src/jquery.quicksearch.js#L32-L34
Hi, thank you for your reply. I looked code of jquery.quickseacH.js and I saw where query is created. My problem is resolved if I add space at end this line
Now, with input
var output is "abcde fghi" and not "abcdefghi" and my search "defh" doesn't work.
Good job on this plugins and I'm happy to use this in my website. And thank you for your help.
Yeah I think this is a valid fix, will update ASAP. (or please send a PR!)
Fixed and released under 2.0.5. Thanks!
No problem, thank you for your job ;).