diff --git a/cleanDiacritics.js b/cleanDiacritics.js index d877006a..f9101932 100644 --- a/cleanDiacritics.js +++ b/cleanDiacritics.js @@ -1,8 +1,8 @@ var makeString = require('./helper/makeString'); -var from = 'ąàáäâãåæăćčĉęèéëêĝĥìíïîĵłľńňòóöőôõðøśșşšŝťțţŭùúüűûñÿýçżźž', - to = 'aaaaaaaaaccceeeeeghiiiijllnnoooooooossssstttuuuuuunyyczzz'; +var from = 'ąàáäâãåăćčĉęèéëêĝĥìíïîĵłľńňòóöőôõðøśșşšŝťțţŭùúüűûñÿýçżźž', + to = 'aaaaaaaaccceeeeeghiiiijllnnoooooooossssstttuuuuuunyyczzz'; from += from.toUpperCase(); to += to.toUpperCase(); @@ -12,6 +12,10 @@ to = to.split(''); // for tokens requireing multitoken output from += 'ß'; to.push('ss'); +from += 'œ'; +to.push('oe'); +from += 'æ'; +to.push('ae'); module.exports = function cleanDiacritics(str) {