diff options
Diffstat (limited to 'assets/js/gsec.js')
-rw-r--r-- | assets/js/gsec.js | 2 |
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/; |