From b6182c34666642b45f665c5a99aa0377a8deada3 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 12 Apr 2020 15:38:19 -0400 Subject: [PATCH] [+] Parse unique-name by replacing level --- src/logic/course-info.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } }