fix: some smaller pieces still missing

This commit is contained in:
2026-02-27 21:15:03 +01:00
parent 696b79c5d7
commit a38954101c
7 changed files with 532 additions and 8 deletions

View File

@@ -18,8 +18,8 @@ const UI_DATE_LOCALE: Record<string, string> = {
const toTemplateSlug = (value: string) => {
const normalized = value
.toLowerCase()
.replace(/[^a-z0-9]+/g, '-')
.replace(/^-+|-+$/g, '');
.replace(/[^a-z0-9]+/g, '_')
.replace(/^_+|_+$/g, '');
return normalized || 'template';
};