Added characters for European languages

Works with case insensitive search extension
pull/441/head
Ares9323 6 years ago
parent 037cb53cdb
commit 0086e9cde3

@ -46,21 +46,24 @@ function removeAccents ( data ) {
.replace( /[ίϊΐ]/g, 'ι' ) .replace( /[ίϊΐ]/g, 'ι' )
.replace( /ή/g, 'η' ) .replace( /ή/g, 'η' )
.replace( /\n/g, ' ' ) .replace( /\n/g, ' ' )
.replace( /á/g, 'a' ) .replace( /[ÀÁÂÃÄÅ]/g, 'A' )
.replace( /é/g, 'e' ) .replace( /[àáâãäå]/g, 'a' )
.replace( /í/g, 'i' ) .replace( /[ÈÉÊË]/g, 'E' )
.replace( /ó/g, 'o' ) .replace( /[èéêë]/g, 'e' )
.replace( /ú/g, 'u' ) .replace( /[ÌÍÎÏ]/g, 'i' )
.replace( /ê/g, 'e' ) .replace( /[ìíîï]/g, 'i' )
.replace( /î/g, 'i' ) .replace( /[ÒÓÔÕÖ]/g, 'O' )
.replace( /ô/g, 'o' ) .replace( /[òóôõö]/g, 'o' )
.replace( /è/g, 'e' ) .replace( /[ÙÚÛÜ]/g, 'U' )
.replace( /ï/g, 'i' ) .replace( /[ùúûü]/g, 'u' )
.replace( /ü/g, 'u' ) .replace( /Ñ/g, 'N' )
.replace( /ã/g, 'a' ) .replace( /ñ/g, 'n' )
.replace( /õ/g, 'o' ) .replace( /Ț/g, 'T' )
.replace( /ç/g, 'c' ) .replace( /ț/g, 't' )
.replace( /ì/g, 'i' ); .replace( /Ș/g, 'S' )
.replace( /ș/g, 's' )
.replace( /Ç/g, 'C' )
.replace( /ç/g, 'c' );
} }
var searchType = jQuery.fn.DataTable.ext.type.search; var searchType = jQuery.fn.DataTable.ext.type.search;

Loading…
Cancel
Save