📅  最后修改于: 2022-03-11 15:03:12.498000             🧑  作者: Mango
// How to normalize a string in JS
// Source : https://stackoverflow.com/a/37511463
str.normalize("NFD").replace(/\p{Diacritic}/gu, "")
// input: crème brûlée
// output: creme brulee