summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-17 14:07:41 +0200
committerrstular <rok@stular.eu>2020-05-17 14:07:41 +0200
commit5c7cf884235fd1a65e83091793e525451e317d8c (patch)
treef7ef152c493159de133b791da231f10dbd029164 /assets
parentFixed install script (diff)
downloadbeziapp-5c7cf884235fd1a65e83091793e525451e317d8c.tar
beziapp-5c7cf884235fd1a65e83091793e525451e317d8c.tar.gz
beziapp-5c7cf884235fd1a65e83091793e525451e317d8c.tar.bz2
beziapp-5c7cf884235fd1a65e83091793e525451e317d8c.tar.lz
beziapp-5c7cf884235fd1a65e83091793e525451e317d8c.tar.xz
beziapp-5c7cf884235fd1a65e83091793e525451e317d8c.tar.zst
beziapp-5c7cf884235fd1a65e83091793e525451e317d8c.zip
Diffstat (limited to 'assets')
-rw-r--r--assets/js/gsec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/gsec.js b/assets/js/gsec.js
index 6bd8f52..6c3de0f 100644
--- a/assets/js/gsec.js
+++ b/assets/js/gsec.js
@@ -290,7 +290,7 @@ class gsec {
fetchTeachers() { // razrednika ne vrne kot razrednika, če le-ta uči še en predmet. razlog: razrednik je napisan dvakrat, drugič se prepiše. Ne da se mi popravljat.
- const SUBJECT_REGEX = /^(.+?) \(/;
+ const SUBJECT_REGEX = /^(.+?(?= \()|.+(?! \())/; // For some reason, JS doesn't support conditional regex
const ABKURZUNG_REGEX = /\((.+?)\)/;
const DAY_REGEX = /^(.+?), /;
const PERIOD_REGEX = /, (\d+?)\. ura/;