andrewrk / node-diacritics

remove diacritics from strings ("ascii folding") - Node.js module
MIT License
263 stars 32 forks source link

Weird behavior for "Cassiopée" string #11

Closed kartben closed 10 years ago

kartben commented 10 years ago

Looks like "C.....é..." always leads to having the 'C' turned in a lower-case 'c'.

See below:

> var removeDiacritics = require('diacritics').remove;
undefined
> removeDiacritics("Cassiopée")
'cassiopee'
> removeDiacritics("Cassiopee")
'Cassiopee'
> removeDiacritics("Bassiopée")
'Bassiopee'
> removeDiacritics("Clé")
'cle'
> removeDiacritics("Cé")
'ce'
> 
andrewrk commented 10 years ago

Good catch. Thanks for the report, the bug is fixed in version 1.1.1

kartben commented 10 years ago

Thanks!