Skip to content

Commit 23a84d6

Browse files
committed
Fix slugify and cleanDiacritics for œ and æ
œ is converted to oe and æ to ae.
1 parent 4fa19a0 commit 23a84d6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cleanDiacritics.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
var makeString = require('./helper/makeString');
33

4-
var from = 'ąàáäâãåæăćčĉęèéëêĝĥìíïîĵłľńňòóöőôõðøśșşšŝťțţŭùúüűûñÿýçżźž',
5-
to = 'aaaaaaaaaccceeeeeghiiiijllnnoooooooossssstttuuuuuunyyczzz';
4+
var from = 'ąàáäâãåăćčĉęèéëêĝĥìíïîĵłľńňòóöőôõðøśșşšŝťțţŭùúüűûñÿýçżźž',
5+
to = 'aaaaaaaaccceeeeeghiiiijllnnoooooooossssstttuuuuuunyyczzz';
66

77
from += from.toUpperCase();
88
to += to.toUpperCase();
@@ -12,6 +12,10 @@ to = to.split('');
1212
// for tokens requireing multitoken output
1313
from += 'ß';
1414
to.push('ss');
15+
from += 'œ';
16+
to.push('oe');
17+
from += 'æ';
18+
to.push('ae');
1519

1620

1721
module.exports = function cleanDiacritics(str) {

0 commit comments

Comments
 (0)