summaryrefslogtreecommitdiffstats
path: root/assets/js/gsec.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/gsec.js')
-rw-r--r--assets/js/gsec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/assets/js/gsec.js b/assets/js/gsec.js
index 6c3de0f..d0e5fbb 100644
--- a/assets/js/gsec.js
+++ b/assets/js/gsec.js
@@ -314,7 +314,8 @@ class gsec {
for (const subjectString of subjectStrings) {
var subjectName = SUBJECT_REGEX.exec(stripHtml(subjectString))[1];
- var abkurzung = ABKURZUNG_REGEX.exec(stripHtml(subjectString))[1];
+ var abkurzung = ABKURZUNG_REGEX.exec(stripHtml(subjectString));
+ abkurzung = abkurzung == null ? subjectName : abkurzung[1];
subjects[abkurzung] = subjectName;
}