This commit is contained in:
Jacob Marshall
2025-01-29 22:47:08 +00:00
parent 88ab0538d9
commit f219ab83f8
@@ -29,7 +29,7 @@ function getIdFrom(children: ReactNode): string {
? children.map(getTextContent).join('') ? children.map(getTextContent).join('')
: getTextContent(children) : getTextContent(children)
return textContent return textContent
.normalize('NFKD') // separate accented characters into their base form and diacritical marks .normalize('NFKD') // separate accented characters into their base form and diacritical marks
.replace(/[\u0300-\u036f]/g, '') // remove all the accents .replace(/[\u0300-\u036f]/g, '') // remove all the accents
.trim() .trim()