_fnDataToSearch doesn't handle carriage returns correctly
_fnDataToSearch doesn't handle carriage returns correctly
![jonathancamp](https://secure.gravatar.com/avatar/ed7ab68c00cc7585afd70499fafda3c3/?default=https%3A%2F%2Fvanillicon.com%2Fed7ab68c00cc7585afd70499fafda3c3_200.png&rating=g&size=120)
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