This file contains 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
/** | |
* Returns the string with accented and non-standard Latin-based characters converted into ASCII approximate equivalents. | |
* | |
* @returns {String} | |
*/ | |
String.prototype.normalize = function() { | |
var NormalizeSource = { | |
'A': /[AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ]/g, | |
'B': /[BⒷBḂḄḆɃƂƁ]/g, | |
'C': /[CⒸCĆĈĊČÇḈƇȻꜾ]/g, |