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 532c13f commit cd23500Copy full SHA for cd23500
src/common/types/generic.ts
@@ -15,8 +15,8 @@ export const illinoisNetId = z
15
.string()
16
.min(3, { message: "NetID must be at least 3 characters." })
17
.max(8, { message: "NetID cannot be more than 8 characters." })
18
- .regex(/^[a-zA-Z]{2}[a-zA-Z-]*(?:[2-9]|[1-9][0-9]{1,2})?$/, {
19
- message: "NetID is not valid!",
+ .regex(/^[a-z]{2}[a-z0-9-]{1,6}$/i, {
+ message: "NetID is malformed.",
20
})
21
.meta({
22
description: "Valid Illinois NetID. See https://answers.uillinois.edu/illinois/page.php?id=78766 for more information.",
0 commit comments