UNPKG

react-native-country-codes-picker

Version:
4 lines 221 B
export const removeDiacritics = (text: string) => { //get the unicode normalization form of the string and replace dialitics with empty string. return text.normalize("NFD").replace(/[\u0300-\u036f]/g, ""); };