Fix pull job and link rewrite

This commit is contained in:
2025-04-18 20:10:21 +02:00
parent e7d0d69e55
commit e5b53585aa
3 changed files with 28 additions and 26 deletions

View File

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