Skip to content

Commit

Permalink
Add TERV- as a valid prefix for course code
Browse files Browse the repository at this point in the history
Beta
  • Loading branch information
AleksTeresh committed Oct 22, 2024
1 parent b47555b commit 3380602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const isValidEmailAddress = (address) =>
)

const isValidCourseCode = (courseCode) =>
/^(TKT|BSCS|BSPH|CSM|MAT|DATA|AY|MFK|JODG|JODG-|ENG|ENG-|ATM|ELK|ECOK|EDUMCE|SOSM|FAF-)[A-Za-z0-9-]{3,12}$/.test(courseCode)
/^(TKT|BSCS|BSPH|CSM|MAT|DATA|AY|MFK|JODG|JODG-|ENG|ENG-|ATM|ELK|ECOK|EDUMCE|SOSM|FAF-|TERV-)[A-Za-z0-9-]{3,12}$/.test(courseCode)

const areValidGraders = (graders) => {
if (!Array.isArray(graders)) return false
Expand Down

0 comments on commit 3380602

Please sign in to comment.