mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 12:12:53 +00:00
20 lines
481 B
TypeScript
20 lines
481 B
TypeScript
|
|
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);
|
||
|
|
}
|