Weird stopping point but whatever

This commit is contained in:
2025-09-05 16:07:38 -05:00
parent 5ca78bd92c
commit 3032d76e43
6 changed files with 101 additions and 43 deletions

View File

@@ -19,6 +19,10 @@ export const ccn = ({
return twMerge(className, context ? on : off);
};
export const PASSWORD_MIN = 8;
export const PASSWORD_MAX = 100;
export const PASSWORD_REGEX = /^(?=.{8,100}$)(?!.*\s)(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\p{P}\p{S}]).*$/u;
type Timestamp = number | string | Date;
const toDate = (ts: Timestamp): Date | null => {