1
0

feat: Another fucking teacher absence format
All checks were successful
Remote Deploy / deploy (push) Successful in 7s

This commit is contained in:
2026-01-13 08:42:44 +01:00
parent 1f30cda90a
commit 4da178d227
2 changed files with 70 additions and 57 deletions

View File

@@ -100,7 +100,7 @@ export default function parseAbsence(input, teacherMap = {}) {
// 1. Teachers with specific hours (e.g. "Ab 1-4")
const teacherListThenSpecRe =
/([A-Za-z]+(?:[,;]\s?[A-Za-z]+)*)(?:\s*)(\d+(?:\+|-\d+|,\d+)?)(?![A-Za-z])/g;
/([A-Za-z]+(?:[,;]\s?[A-Za-z]+)*)(?:\s*)(\d+(?:\+|-\d+|,\d+)?)(?:\.\s*h)?(?![A-Za-z])/g;
let m;
while ((m = teacherListThenSpecRe.exec(s)) !== null) {