Skip to content

Commit 131c808

Browse files
committed
Match 'other' courses with 2-4 chars
1 parent ed02f89 commit 131c808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/trpc/router/validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const validatorRouter = router({
7878
const preReqHash = new Map<string, Array<[Array<string>, number]>>();
7979
const coOrPreReqHash = new Map<string, Array<[Array<string>, number]>>();
8080
// Regex to parse course from description of improperly parsed course
81-
const re = /\b[A-Z]{2} \d{4}\b/;
81+
const re = /\b[A-Z]{2,4} \d{4}\b/;
8282

8383
/* Recursive function to check for prereqs.
8484
* TODO: Move to a client side function. Possibly a hook.

0 commit comments

Comments
 (0)