This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Remove accent | |
* @param {String} newString [string with accents] | |
* @return {String} [string without accents] | |
*/ | |
function removeAccents( newString ) { | |
let string = newString; | |
let mapHex = { | |
a : /[\xE0-\xE6]/g, | |
e : /[\xE8-\xEB]/g, |