Merge branch 'master' of github.com:Mottie/tablesorter

This commit is contained in:
Mottie 2013-12-18 22:32:59 -06:00
commit e3ae84a1e9

View File

@ -501,7 +501,7 @@ ts.filter = {
}, },
// Look for wild card: ? = single, * = multiple, or | = logical OR // Look for wild card: ? = single, * = multiple, or | = logical OR
wild : function( filter, iFilter, exact, iExact, cached, index, table ) { wild : function( filter, iFilter, exact, iExact, cached, index, table ) {
if ( /[\?|\*]/.test(iFilter) || /\s+OR\s+/.test(filter) ) { if ( /[\?|\*]/.test(iFilter) || /\s+OR\s+/i.test(filter) ) {
var c = table.config, var c = table.config,
query = iFilter.replace(/\s+OR\s+/gi,"|"); query = iFilter.replace(/\s+OR\s+/gi,"|");
// look for an exact match with the "or" unless the "filter-match" class is found // look for an exact match with the "or" unless the "filter-match" class is found