Search filter does not match all newline characters
Search filter does not match all newline characters

When using a regex search filter that includes head and tail (e.g. /^.*$/ ), the presence of a unicode 'line separator' character (U+2028) causes the search to fail.
This is related to https://datatables.net/forums/discussion/1868/bug-with-searching-multiline-columns-fix except that the regex in the datatables code is wrong - rather than
/[\r\n]/g
it needs to be
/[\r\n\u2028]/g
(this should really be in "bug reports" but I can't seem to work out how to post / move it there...)
This discussion has been closed.
Replies
Hi @NRT ,
That seems reasonable. I've created a jira for this (DD-669), and will report back when it's progressed.
Cheers,
Colin
I've committed the fix.
I've never used the line separator character myself - are you parsing CSV files or something else?
Allan
Thanks for the quick response guys.
@allan I've never used this character either - we came across it in user inputted text, which I suspect was copied over from a word processor, possibly french locale.