Skip to content

Commit

Permalink
Update course code validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Keskimaki committed Aug 28, 2023
1 parent 31efdd8 commit 0a37713
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|CSM|MAT|DATA|AY|MFK|JODG|JODG-|ENG|ENG-|ATM|ELK|ECOK|EDUMCE)[A-Za-z0-9-]{3,12}$/.test(courseCode)
/^(TKT|BSCS|CSM|MAT|DATA|AY|MFK|JODG|JODG-|ENG|ENG-|ATM|ELK|ECOK|EDUMCE|FAF-)[A-Za-z0-9-]{3,12}$/.test(courseCode)

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

0 comments on commit 0a37713

Please sign in to comment.