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