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

Support to diacritics match during filtering #725

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mario-espinoza
Copy link

This version allows matching characters with accents/diacritics during filtering
e.g. "évidemment" is matched with "evidemment".
Using algorithm suggested in http://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript by rdllopes

Algorithm hardcoded to avoid packages dependencies

This is achieved by setting the enableDiacriticsMatchFiltering option as true.

@mario-espinoza mario-espinoza changed the title Support to diacritics filtering Support to diacritics match during filtering Apr 12, 2016
@davidstutz
Copy link
Owner

Definitely a good feature. However, impossible to merge due to the formatting changes. Will try to merge it manually.

@chukhanhvan
Copy link

I see a lot of PR in recent days, do you plan to add this diacritics feature? I like bootstrap-multiselect but diacritics is the only reason to still use select2

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

Successfully merging this pull request may close these issues.

4 participants