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

Please update characters in accent insensitive search ( liveSearchNormalize ) #2808

Open
MCApeGithub opened this issue Dec 12, 2022 · 1 comment
Labels

Comments

@MCApeGithub
Copy link

MCApeGithub commented Dec 12, 2022

I need to type "ges" and get in return "Argeș"; and to type "ita" and get in return "Bistrița-Năsăud".
I use Bootstrap-select v1.13.14, for select html tags, with liveSearch=True and liveSearchNormalize=True, that contain special characters like: ăĂîÎâÂșȘțȚ. When I type "au" it returns "Bacău", but when I type "ges" it returns "No results matched".
My select contains: "Arad"; "Argeș"; "Bacău"; "Brașov"; "Bistrița-Năsăud".
To understand it better, visit the webpage ( http://clasate.cimec.ro/ ), and please go to "Selectaţi după Judeţul Deţinătorului" select.

Please update characters in accent insensitive search, by adding these also
Ș u0218
ș u0219
Ț u021a
ț u021b

github-issue

Thank you

@MCApeGithub
Copy link
Author

I have suceeded in modifying on local files (bootstrap-select.min.js and bootstrap-select.js) by adding (u0218, u0219, u021a, u021b) to following parameters: deburredLetters and reLatin.

var deburredLetters = {
...
'\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S', '\u0218': 'S',
'\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's', '\u0219': 's',
'\u0162': 'T', '\u0164': 'T', '\u0166': 'T', '\u021a': 'T',
'\u0163': 't', '\u0165': 't', '\u0167': 't', '\u021b': 't',
...
};
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f\u0218-\u0219\u021a-\u021b]/g;

Please modify on your online public source code, also!

Thank you!

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

No branches or pull requests

1 participant