aboutsummaryrefslogtreecommitdiff
path: root/dbparse.js
diff options
context:
space:
mode:
authorJoelHMikael <joel.h.kronqvist@gmail.com>2022-01-16 16:50:44 +0200
committerJoelHMikael <joel.h.kronqvist@gmail.com>2022-01-16 16:50:44 +0200
commit28e4f1cf0dbd1c14a9724d17cf9127d223d85289 (patch)
tree4daa0e811e580b1963ffb6b6cda04664b7d19245 /dbparse.js
parent1a1b117cc9eae2cc2ecfb3695bebe21daf08741b (diff)
downloadLYLLRuoka-28e4f1cf0dbd1c14a9724d17cf9127d223d85289.tar.gz
LYLLRuoka-28e4f1cf0dbd1c14a9724d17cf9127d223d85289.zip
Actual class parsing
Really messy, feel free to improve, or even rewrite.
Diffstat (limited to 'dbparse.js')
-rw-r--r--dbparse.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbparse.js b/dbparse.js
index 5f495e5..2be3f96 100644
--- a/dbparse.js
+++ b/dbparse.js
@@ -225,7 +225,7 @@ function getIndexType(index)
return "course";
if (/^[A-Za-zåäöÅÄÖ]{4}$/.test(index))
return "teacher";
- if (/^\w\d{3}$/.test(index))
+ if (/^\w\d{3}R?$/.test(index))
return "class";
}