diacritics comment

master
vampi 3 months ago
parent 95a1da95e2
commit 465edc4b97

@ -67,6 +67,7 @@ app.get('/listVoices', (req, res, next) => {
}
}
let selectorMap = {};
// https://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript
const removeDiacritics = s => s.normalize('NFD').replace(/\p{Diacritic}/gu, '');
const getSelector = (name, id, provider) => {
let nameClean = removeDiacritics(name.toLowerCase());

Loading…
Cancel
Save