mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-25 12:52:47 -07:00
lint
This commit is contained in:
@@ -29,7 +29,7 @@ function getIdFrom(children: ReactNode): string {
|
||||
? children.map(getTextContent).join('')
|
||||
: getTextContent(children)
|
||||
|
||||
return textContent
|
||||
return textContent
|
||||
.normalize('NFKD') // separate accented characters into their base form and diacritical marks
|
||||
.replace(/[\u0300-\u036f]/g, '') // remove all the accents
|
||||
.trim()
|
||||
|
||||
Reference in New Issue
Block a user