diff --git a/src/logic/course-info.ts b/src/logic/course-info.ts index 600cef5..ee9569a 100644 --- a/src/logic/course-info.ts +++ b/src/logic/course-info.ts @@ -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; } }