From eb1bf1c64ba0b2a64dd2092b258039f4b7ea49da Mon Sep 17 00:00:00 2001 From: Leonidas Arvanitis Date: Fri, 26 Dec 2014 20:01:54 +0200 Subject: [PATCH] =?UTF-8?q?Added=20extra=20greek=20forms=20'=CF=8A=CE=90?= =?UTF-8?q?=CF=8B=CE=B0'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also fixed formatting for some of the other characters to comply with the rest of the code. --- filtering/type-based/accent-neutralise.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/filtering/type-based/accent-neutralise.js b/filtering/type-based/accent-neutralise.js index 8bb700e..89b08d1 100644 --- a/filtering/type-based/accent-neutralise.js +++ b/filtering/type-based/accent-neutralise.js @@ -39,13 +39,13 @@ jQuery.fn.DataTable.ext.type.search.string = function ( data ) { '' : typeof data === 'string' ? data - .replace( /έ/g, 'ε') - .replace( /ύ/g, 'υ') - .replace( /ό/g, 'ο') - .replace( /ώ/g, 'ω') - .replace( /ά/g, 'α') - .replace( /ί/g, 'ι') - .replace( /ή/g, 'η') + .replace( /έ/g, 'ε' ) + .replace( /[ύϋΰ]/g, 'υ' ) + .replace( /ό/g, 'ο' ) + .replace( /ώ/g, 'ω' ) + .replace( /ά/g, 'α' ) + .replace( /[ίϊΐ]/g, 'ι' ) + .replace( /ή/g, 'η' ) .replace( /\n/g, ' ' ) .replace( /á/g, 'a' ) .replace( /é/g, 'e' )