SyntaxFix
Write A Post
Hire A Developer
Questions
You can remove the diacritics from alphabets by using:
var str = "résumé" str.normalize('NFD').replace(/[\u0300-\u036f]/g, '') // returns resume
It will remove all the diacritical marks, and then perform your regex on it
Reference:
https://thread.engineering/2018-08-29-searching-and-sorting-text-with-diacritical-marks-in-javascript/