Skip to content

Commit 64dce2c

Browse files
committed
update netid validation regex
1 parent dc91ac3 commit 64dce2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/functions/validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export function validateEmail(email: string): boolean {
77
}
88

99
export function validateNetId(netId: string): boolean {
10-
const regex = /^[a-zA-Z0-9\-]+$/;
10+
const regex = /^[a-zA-Z]{2}[a-zA-Z\-]*(?:[2-9]|[1-9][0-9]{1,2})?$/;
1111
return regex.test(netId);
1212
}

0 commit comments

Comments
 (0)