diff options
author | rstular <rok@stular.eu> | 2020-05-17 14:15:35 +0200 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-05-17 14:17:08 +0200 |
commit | 44e8c1e1c9124b36a78f775b9a7dd12152a71d98 (patch) | |
tree | e17527f35ce26c8b5502ecde72fa0f5714a238c6 /assets/js | |
parent | Bug fix - GSEC regex matching (diff) | |
download | beziapp-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 'assets/js')
-rw-r--r-- | assets/js/gsec.js | 3 |
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; } |