From 28e4f1cf0dbd1c14a9724d17cf9127d223d85289 Mon Sep 17 00:00:00 2001 From: JoelHMikael Date: Sun, 16 Jan 2022 16:50:44 +0200 Subject: Actual class parsing Really messy, feel free to improve, or even rewrite. --- dbparse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dbparse.js') 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"; } -- cgit v1.2.3