summaryrefslogtreecommitdiffstats
path: root/dist/js
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-17 14:15:35 +0200
committerrstular <rok@stular.eu>2020-05-17 14:17:08 +0200
commit44e8c1e1c9124b36a78f775b9a7dd12152a71d98 (patch)
treee17527f35ce26c8b5502ecde72fa0f5714a238c6 /dist/js
parentBug fix - GSEC regex matching (diff)
downloadbeziapp-44e8c1e1c9124b36a78f775b9a7dd12152a71d98.tar
beziapp-44e8c1e1c9124b36a78f775b9a7dd12152a71d98.tar.gz
beziapp-44e8c1e1c9124b36a78f775b9a7dd12152a71d98.tar.bz2
beziapp-44e8c1e1c9124b36a78f775b9a7dd12152a71d98.tar.lz
beziapp-44e8c1e1c9124b36a78f775b9a7dd12152a71d98.tar.xz
beziapp-44e8c1e1c9124b36a78f775b9a7dd12152a71d98.tar.zst
beziapp-44e8c1e1c9124b36a78f775b9a7dd12152a71d98.zip
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;
}