_fnDataToSearch doesn't handle carriage returns correctly
_fnDataToSearch doesn't handle carriage returns correctly
jonathancamp
Posts: 1Questions: 0Answers: 0
If the data to be filtered contains a carriage return then the search won't succeed. The regular expression in _fnFilterCreateSearch could be modified to use 'multiline' or (in the patch below) you could modify _fnDataToSearch to replace the '\r'.
Example (search for 'foo'):
http://jsfiddle.net/kung_foo/Dd8FQ/
Patch:
http://pastebin.com/vg3huydj
- jonathan
P.S. Awesome plugin! :)
Example (search for 'foo'):
http://jsfiddle.net/kung_foo/Dd8FQ/
Patch:
http://pastebin.com/vg3huydj
- jonathan
P.S. Awesome plugin! :)
This discussion has been closed.
Replies
Thanks for the patch.
Mike
Regards,
Allan