UNPKG

phx-react

Version:

PHX REACT

9 lines 272 B
export const normalizeVietnameseText = (str = '') => str .normalize('NFD') .replace(/[\u0300-\u036f]/g, '') .replace(/đ/g, 'd') .replace(/Đ/g, 'D') .toLowerCase() .replace(/\s+/g, ' ') .trimStart(); //# sourceMappingURL=remove-vn-tones.js.map