Filter: prevent OR filter type from splitting up regex string. See #1070

This commit is contained in:
Rob Garrison 2015-11-09 10:50:49 -06:00
parent 2ac96256ac
commit d56c621456
2 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -110,7 +110,9 @@
// data.parsed = array ( by column ) of boolean values ( from filter_useParsedData or 'filter-parsed' class )
types: {
or : function( c, data, vars ) {
if ( tsf.regex.orTest.test( data.iFilter ) || tsf.regex.orSplit.test( data.filter ) ) {
// look for "|", but not if it is inside of a regular expression
if ( ( tsf.regex.orTest.test( data.iFilter ) || tsf.regex.orSplit.test( data.filter ) ) &&
!tsf.regex.regex.test( data.filter ) ) {
var indx, filterMatched, query, regex,
// duplicate data but split filter
data2 = $.extend( {}, data ),