We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Spanish there are letters with accents (tildes), when looking for an accented word without the right accent the word is discarded.
For example in spanish the action word is written as "acción", that is not equal to "accion".
I use a Javascript function would appreciate inclusion in this wonderful library.
function accentsTidy(s){ var r = s.toLowerCase(); r = r.replace(new RegExp("[àáâãäå]", 'gi'),"a"); r = r.replace(new RegExp("æ", 'gi'),"ae"); r = r.replace(new RegExp("ç", 'gi'),"c"); r = r.replace(new RegExp("[èéêë]", 'gi'),"e"); r = r.replace(new RegExp("[ìíîï]", 'gi'),"i"); r = r.replace(new RegExp("ñ", 'gi'),"n"); r = r.replace(new RegExp("[òóôõö]", 'gi'),"o"); r = r.replace(new RegExp("œ", 'gi'),"oe"); r = r.replace(new RegExp("[ùúûü]", 'gi'),"u"); r = r.replace(new RegExp("[ýÿ]", 'gi'),"y"); return r; }
Thank you.
The text was updated successfully, but these errors were encountered:
Duplicate of #536
Sorry, something went wrong.
No branches or pull requests
In Spanish there are letters with accents (tildes), when looking for an accented word without the right accent the word is discarded.
For example in spanish the action word is written as "acción", that is not equal to "accion".
I use a Javascript function would appreciate inclusion in this wonderful library.
Thank you.
The text was updated successfully, but these errors were encountered: