Small UI improvements and fixes to project edition

This commit is contained in:
2024-11-28 00:01:57 +01:00
parent 20ab51a66c
commit d71e8b7910
10 changed files with 98 additions and 35 deletions

View File

@@ -6,7 +6,7 @@ export function unifySlug(slug: string | string[]): string
}
export function parsePath(path: string): string
{
return path.toLowerCase().replaceAll(" ", "-").normalize("NFD").replace(/[\u0300-\u036f]/g, "");
return path.toLowerCase().replaceAll(" ", "-").normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "").replaceAll('(', '').replaceAll(')', '');
}
export function parseId(id: string | undefined): string |undefined
{