summaryrefslogtreecommitdiffstats
path: root/dist/js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/js')
-rw-r--r--dist/js/gsec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/dist/js/gsec.js b/dist/js/gsec.js
index 6c3de0f..d0e5fbb 100644
--- a/dist/js/gsec.js
+++ b/dist/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;
}