Skip to content

Commit

Permalink
fix crn code limit (max digits in code should be 5)
Browse files Browse the repository at this point in the history
  • Loading branch information
demetrios-koziris committed Apr 25, 2017
1 parent 8dec55e commit a23d197
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/autoregistration.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function parseCourse() {
course.number = courseNumber;

let courseCRNs = document.getElementById('course-codes').value.split(' ');
if (courseCRNs.some(x => x == null || !(x.match(/^[0-9]{3,4}$/)))) {
if (courseCRNs.some(x => x == null || !(x.match(/^[0-9]{3,5}$/)))) {
throw new MyError("Parsing course CRNs from input field failed.");
}
course.crns = courseCRNs;
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Minerva Autoregistration",
"author": "kozirisdev",
"manifest_version": 2,
"version": "0.5",
"version": "0.6",
"description": "A Chrome Extension for Minerva Autoregistration functionality.",
"permissions" : [
"declarativeContent",
Expand Down

0 comments on commit a23d197

Please sign in to comment.