Skip to content

Support to diacritics match during filtering#725

Open
mvrioe wants to merge 2 commits intodavidstutz:masterfrom
mvrioe:master
Open

Support to diacritics match during filtering#725
mvrioe wants to merge 2 commits intodavidstutz:masterfrom
mvrioe:master

Conversation

@mvrioe
Copy link
Copy Markdown

@mvrioe mvrioe commented Apr 12, 2016

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.

@mvrioe mvrioe changed the title Support to diacritics filtering Support to diacritics match during filtering Apr 12, 2016
@davidstutz
Copy link
Copy Markdown
Owner

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

@chukhanhvan
Copy link
Copy Markdown

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