chore: complete clean Agent Desk source snapshot
This commit is contained in:
5
web/lib/support-slug.ts
Normal file
5
web/lib/support-slug.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export const supportSlugPattern = /^[a-z0-9-]+$/
|
||||
|
||||
export function normalizeSupportSlug(value: string) {
|
||||
return value.trim().toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "")
|
||||
}
|
||||
Reference in New Issue
Block a user