From 8d216904b18b0a978643dcda627950f3479d16a8 Mon Sep 17 00:00:00 2001 From: woaitsAryan Date: Thu, 18 Jan 2024 22:49:31 +0530 Subject: [PATCH] fix: reg no fix --- src/lib/validation/registerFormSchema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/validation/registerFormSchema.js b/src/lib/validation/registerFormSchema.js index 1657dc8..5741191 100644 --- a/src/lib/validation/registerFormSchema.js +++ b/src/lib/validation/registerFormSchema.js @@ -4,7 +4,7 @@ import { parsePhoneNumber } from 'libphonenumber-js'; export const constants = { vitEmailRegex: /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((vitstudent.ac.in)|(vit.ac.in))$/, passwordRegex: /^[a-zA-Z0-9`!@#$%^&*()-/:'.,{}_"~]{8,50}$/, // 8-50 characters, - regNoRegex: /^22[A-Z]{3}\d{4}$/, + regNoRegex: /^2\d[A-Z]{3}\d{4}$/, usernameRegex: /^[a-zA-Z0-9`!@#$%^&*()-/:'.,{}_"~]{3,20}$/, };