Skip to content

Commit

Permalink
strip extra symbol at the end of course name that appears on transcri…
Browse files Browse the repository at this point in the history
…pt for XXXXD# format courses in class average submission
  • Loading branch information
demetrios-koziris committed Jun 21, 2017
1 parent 76f59a1 commit 68a25e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/js/addAveCrowdsource.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ function averageGPAsDownloader() {
else if (cols.length === 8 || cols.length === 7) {
logForDebug(cols);
if (cols[cols.length-1].innerText.match(/[ABCDF+-]/)) {
let course = cols[0].innerText.split(" ");
aveGPAs.push([cols[0].innerText.replace(/\s/, ''), course[0], course[1], cols[1].innerText, term, cols[3].innerText, cols[cols.length-1].innerText]);
let courseName = cols[0].innerHTML.split(" ")[0].split(" ");
aveGPAs.push([courseName[0]+courseName[1], courseName[0], courseName[1], cols[1].innerText, term, cols[3].innerText, cols[cols.length-1].innerText]);
}
}
}
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": "McGill Enhanced",
"author": "kozirisdev",
"manifest_version": 2,
"version": "3.2.10",
"version": "3.2.11",
"description": "Enhance the functionality of McGill.ca",
"permissions" : [
"storage",
Expand Down

0 comments on commit 68a25e0

Please sign in to comment.