mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 13:52:20 +00:00
initial setup, ztdl-login, core
This commit is contained in:
19
apps/login/utils/validators.ts
Normal file
19
apps/login/utils/validators.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
export function symbolValidator(value: string): boolean {
|
||||
const REGEXP = /[^a-zA-Z0-9]/gi;
|
||||
return REGEXP.test(value);
|
||||
}
|
||||
|
||||
export function numberValidator(value: string): boolean {
|
||||
const REGEXP = /[0-9]/g;
|
||||
return REGEXP.test(value);
|
||||
}
|
||||
|
||||
export function upperCaseValidator(value: string): boolean {
|
||||
const REGEXP = /[A-Z]/g;
|
||||
return REGEXP.test(value);
|
||||
}
|
||||
|
||||
export function lowerCaseValidator(value: string): boolean {
|
||||
const REGEXP = /[a-z]/g;
|
||||
return REGEXP.test(value);
|
||||
}
|
||||
Reference in New Issue
Block a user