FIX: de-sensitize alphabetSearch for case (#2381)

This commit is contained in:
Barbeque Sauce 2019-12-29 18:56:06 -05:00 committed by GitHub
parent cbb89e1b60
commit 88a22458a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ $.fn.dataTable.ext.search.push( function ( context, searchData ) {
if ( context.alphabetSearch.match('nonalpha') && !(searchData[1].charAt(0).match(/^[a-zA-Z]/)) ) {
return true;
}
if ( searchData[1].charAt(0) === context.alphabetSearch ) {
if ( searchData[1].charAt(0).toUpperCase() === context.alphabetSearch ) {
return true;
}