[+] Parse unique-name by replacing level
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user