Skip to content

Commit

Permalink
Match 'other' courses with 2-4 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
cubetastic33 committed Apr 4, 2023
1 parent ed02f89 commit 131c808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/trpc/router/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const validatorRouter = router({
const preReqHash = new Map<string, Array<[Array<string>, number]>>();
const coOrPreReqHash = new Map<string, Array<[Array<string>, number]>>();
// Regex to parse course from description of improperly parsed course
const re = /\b[A-Z]{2} \d{4}\b/;
const re = /\b[A-Z]{2,4} \d{4}\b/;

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

0 comments on commit 131c808

Please sign in to comment.