From 80b4b178efc9a7b3d420a784cc3c56871874c075 Mon Sep 17 00:00:00 2001 From: Alexey Khruhsch Date: Wed, 26 Jun 2019 12:16:27 +0300 Subject: [PATCH 1/2] fix: remove cyrillic lowercase L --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index df607cb..b086ea7 100644 --- a/index.js +++ b/index.js @@ -231,7 +231,7 @@ var replacementList = [ chars: "\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F", }, { base: 'n', - chars: "\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u043B\u0509", + chars: "\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u0509", }, { base: 'nj', chars: "\u01CC", From a33195e52d07dbd31643106629edeb63078de815 Mon Sep 17 00:00:00 2001 From: Alexey Khruhsch Date: Wed, 26 Jun 2019 12:40:12 +0300 Subject: [PATCH 2/2] =?UTF-8?q?chore(test):=20correct=20=D0=BB=20symbol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 637f31b..6fa3d37 100644 --- a/test/test.js +++ b/test/test.js @@ -1,9 +1,9 @@ var removeDiacritics = require('../').remove, assert = require('assert'); -assert.strictEqual(removeDiacritics("Iлtèrnåtïonɑlíƶatï߀ԉ"), +assert.strictEqual(removeDiacritics("Intèrnåtïonɑlíƶatï߀ԉ"), "Internationalizati0n"); -assert.strictEqual(removeDiacritics("Båcòл ípѕùm ðoɭ߀r ѕït aϻèt âùþê aԉᏧ߀üïlɭê ƃëéf culρá fïlèt ϻiǥnòn cuρiᏧatat ut êлim tòлɢùê."), +assert.strictEqual(removeDiacritics("Båcòn ípѕùm ðoɭ߀r ѕït aϻèt âùþê aԉᏧ߀üïlɭê ƃëéf culρá fïlèt ϻiǥnòn cuρiᏧatat ut ênim tònɢùê."), "Bacon ipѕum dhol0r ѕit aMet authe and0uille beef culpa filet Mignon cupidatat ut enim tonGue."); assert.strictEqual(removeDiacritics("ᴎᴑᴅᴇȷʂ"), "NoDEJs");