[+] Parse unique-name by replacing level

This commit is contained in:
Hykilpikonna
2020-04-12 15:38:19 -04:00
parent 902cb66cc4
commit b6182c3466
+2 -1
View File
@@ -24,7 +24,8 @@ export default class CourseInfo
this.teacher = json.teacher
this.level = json.level
this.courseIds = json.courseIds
this.uniqueName = this.name.replace(/( A| CP| H)$/g, '')
this.courseCount = this.courseIds.split('|').length;
}
}