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

Improve diacritics normalization function (removing accents) #1686

Closed
wants to merge 1 commit into from

Conversation

imbrish
Copy link

@imbrish imbrish commented Mar 24, 2017

Similarly to a few other people I encountered problems when searching through a list that contained strings with diacritics. Other issues: #1551 #1587 #767.

Solved my problem using function from http://jsperf.com/diacritics/27 and decided to share the solution.

Code is a little messy with the long mapping of characters. It probably could be simplified, but according to the benchmark from the link above this is the fastest method. However I haven't tested performance against the old function.

@imbrish imbrish changed the title Improve districts normalization function (removing accents) Improve diacritics normalization function (removing accents) Mar 24, 2017
@caseyjhol caseyjhol self-requested a review September 3, 2018 18:33
caseyjhol added a commit that referenced this pull request Oct 17, 2018
@caseyjhol
Copy link
Member

A more advanced normalizeToBase function will be used in the next release.

@caseyjhol
Copy link
Member

Released in v1.13.4!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants