We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node: v14.15.4 | OS: Linux (Arch) | normalize-text: v2.3.1
normalizeDiacritics unexpectedly removes the letter ß:
normalizeDiacritics
The text was updated successfully, but these errors were encountered:
Looks like the substitution pattern is too wide and is removing non-diacritics:
normalize-text/src/normalizeDiacritics.ts
Line 12 in d82bc15
The character class listed here (via) appears to work as expected:
const normalize = str => str.normalize('NFKD').replace(/[\u0300-\u036F]/g, '') normalize('Amélie plays Fußball') // "Amelie plays Fußball"
Sorry, something went wrong.
8d9f0de
Fixed and released under version 2.3.2.
2.3.2
No branches or pull requests
Node: v14.15.4 | OS: Linux (Arch) | normalize-text: v2.3.1
normalizeDiacritics
unexpectedly removes the letter ß:The text was updated successfully, but these errors were encountered: