diff options
author | sijanec <sijanecantonluka@gmail.com> | 2020-05-18 00:33:50 +0200 |
---|---|---|
committer | sijanec <sijanecantonluka@gmail.com> | 2020-05-18 00:33:50 +0200 |
commit | 4638ba703a955bacfd3734ad0901ba453dfad24e (patch) | |
tree | 965b2cf5443b12b1216eda6e2ed7d17d17621088 /dist/js | |
parent | does it work? (diff) | |
download | beziapp-4638ba703a955bacfd3734ad0901ba453dfad24e.tar beziapp-4638ba703a955bacfd3734ad0901ba453dfad24e.tar.gz beziapp-4638ba703a955bacfd3734ad0901ba453dfad24e.tar.bz2 beziapp-4638ba703a955bacfd3734ad0901ba453dfad24e.tar.lz beziapp-4638ba703a955bacfd3734ad0901ba453dfad24e.tar.xz beziapp-4638ba703a955bacfd3734ad0901ba453dfad24e.tar.zst beziapp-4638ba703a955bacfd3734ad0901ba453dfad24e.zip |
Diffstat (limited to '')
-rw-r--r-- | dist/js/app.js | 7 | ||||
-rw-r--r-- | dist/js/gsec.js | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/dist/js/app.js b/dist/js/app.js index 79ccf06..d47437e 100644 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -47,3 +47,10 @@ function gsecErrorHandlerUI(err) { UIAlert( D("gsecErrOther") ); } } + + +window.onerror = function (msg, url, lineNo, columnNo, error) { + // ... handle error ... + alert("f u k"); + return false; +} diff --git a/dist/js/gsec.js b/dist/js/gsec.js index 404bc0c..a3a8bdd 100644 --- a/dist/js/gsec.js +++ b/dist/js/gsec.js @@ -292,7 +292,7 @@ class gsec { const SUBJECT_REGEX = /^(.+?(?= \()|.+(?! \())/; // For some reason, JS doesn't support conditional regex const ABKURZUNG_REGEX = /\((.+)\)/; - const DAY_REGEX = /^(.+?), /; + const DAY_REGEX = /^(.+?), /m; const PERIOD_REGEX = /, (\d+?)\. ura/; const TIME_RANGE_REGEX = /\((.+?) - (.+?)\)/; |