diff --git a/src/utils/string-utils.ts b/src/utils/string-utils.ts index e5e1d4d..4eea4d4 100644 --- a/src/utils/string-utils.ts +++ b/src/utils/string-utils.ts @@ -12,9 +12,10 @@ export const toCamelCase = (str: string) => { export const slugify = (str: string) => { return str .toLowerCase() + .normalize('NFD') + .replace(/[\u0300-\u036f]/g, '') .replace(/\s+/g, '-') .replace(/\-+/g, '-') - .replace(/[^a-z0-9\-]/g, '') } type Child = string | { props: { children: Child[] } }