diff --git a/src/js/addAveCrowdsource.js b/src/js/addAveCrowdsource.js index 870520b..7d94e8d 100644 --- a/src/js/addAveCrowdsource.js +++ b/src/js/addAveCrowdsource.js @@ -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]); } } } diff --git a/src/manifest.json b/src/manifest.json index fb95836..08f3f03 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -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",