mirror of
https://github.com/Nezumi-2711/foodify-frontend.git
synced 2026-09-23 04:09:52 +00:00
8 lines
251 B
TypeScript
8 lines
251 B
TypeScript
export class Validation {
|
|
static Regex = {
|
|
Phone: new RegExp(/^(((\+|)84)|0)([1-9]{1})([0-9]{8})\b/),
|
|
IdentifiedCode: new RegExp(/^(\d{9}|\d{12})$/),
|
|
Password: new RegExp(/(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@$!%*#?&^_-]).{8,}/),
|
|
};
|
|
}
|