Skip to content
New issue

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

remove diacritics on first letter on grouped contact #1410

Merged
merged 1 commit into from
Jun 3, 2019

Conversation

iamdey
Copy link
Member

@iamdey iamdey commented May 29, 2019

Fix #1398

@iamdey iamdey requested a review from MonsieurLanza May 29, 2019 13:58
Copy link
Contributor

@MonsieurLanza MonsieurLanza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To remove diacritics, you can normalize in NFKD, strip out non-ascii chars, then eventually re-normalize in NFC… Don't know if it's worth the hassle, anyway, it may avoid the dependency.

See : https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/String/normalize
and https://fr.wikipedia.org/wiki/Normalisation_Unicode#NFKD

@iamdey iamdey force-pushed the fix/frontend/contactbook_diacritics branch from ed9f36d to a2d197a Compare June 3, 2019 09:56
@iamdey iamdey merged commit 10810da into develop Jun 3, 2019
@iamdey iamdey deleted the fix/frontend/contactbook_diacritics branch June 3, 2019 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants