UNPKG

149 BJavaScriptView Raw
1class StringUtils {
2 static unaccent(text) {
3 return text.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
4 }
5}
6
7module.exports = StringUtils;