This commit is contained in:
2025-06-27 16:02:00 +02:00
parent 96dbc38c3a
commit 012058b998
21 changed files with 1299 additions and 433 deletions

12
utils/validation.ts Normal file
View File

@ -0,0 +1,12 @@
const validation = function (item:string, min:number, max:number, regEx = /.*/) {
if (
item == undefined ||
item.length < min ||
item.length > max ||
!regEx.test(item)
) return false;
else return true;
};
export { validation };