LeaVerou / awesomplete

Ultra lightweight, usable, beautiful autocomplete with zero dependencies.
http://leaverou.github.io/awesomplete/
MIT License
6.95k stars 609 forks source link

Add ignore diacritics [fixes #17187, #17234] #17235

Closed scoopandrun closed 3 years ago

scoopandrun commented 3 years ago

I added the possibility to ignore characters with diacritics.

When the user inputs a string, it should match with the items in the list whether or not the input or the items have accented characters.

This PR introduces a new option Awesomplete.ignoreDiacritics (boolean, default true). When set to true, it allows matching accented characters against non-accented characters. When set to false, it requires characters to be the same to match.

This is an implementation of David Calhoun's blog post.