mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Exact filter matches now properly overrides other searches. Fixes #441
This commit is contained in:
parent
32f01866ac
commit
459aab55e1
@ -422,8 +422,8 @@ ts.filter = {
|
|||||||
// Look for quotes or equals to get an exact match; ignore type since iExact could be numeric
|
// Look for quotes or equals to get an exact match; ignore type since iExact could be numeric
|
||||||
exact: function( filter, iFilter, exact, iExact ) {
|
exact: function( filter, iFilter, exact, iExact ) {
|
||||||
/*jshint eqeqeq:false */
|
/*jshint eqeqeq:false */
|
||||||
if ( iFilter.replace(ts.filter.regex.exact, '') == iExact ) {
|
if (ts.filter.regex.exact.test(iFilter)) {
|
||||||
return true;
|
return iFilter.replace(ts.filter.regex.exact, '') == iExact;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user