We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc91ac3 commit 64dce2cCopy full SHA for 64dce2c
src/api/functions/validation.ts
@@ -7,6 +7,6 @@ export function validateEmail(email: string): boolean {
7
}
8
9
export function validateNetId(netId: string): boolean {
10
- const regex = /^[a-zA-Z0-9\-]+$/;
+ const regex = /^[a-zA-Z]{2}[a-zA-Z\-]*(?:[2-9]|[1-9][0-9]{1,2})?$/;
11
return regex.test(netId);
12
0 commit comments