mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-09 15:11:29 -07:00
Initial commit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export function nameValidator(value: string) {
|
||||
if (!/^[a-z][a-z0-9-]*$/.test(value)) {
|
||||
return 'Must start with a letter and contain only lowercase letters, numbers, and hyphens'
|
||||
}
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user