This commit is contained in:
Janis
2023-01-29 20:56:59 +01:00
parent 0997e8fdb8
commit d3e5295832
120 changed files with 0 additions and 26885 deletions

View File

@@ -1,10 +0,0 @@
export function isValidText(text: string): boolean {
const textRegex = /^[a-zA-Z\s\d\-_\(\)\[\]\{\}\!\@\#\$\%\^\&\*\+\=\,\.\?\/\\\|\'\":;]+$/;
return textRegex.test(text) && text.length > 0;
}
export function isValidName(name: string): boolean {
const nameRegex = /^[a-zA-Z0-9\-_]+$/;
return nameRegex.test(name);
}