diff options
| author | Simon Rettberg | 2025-08-07 18:16:10 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2025-08-07 18:16:10 +0200 |
| commit | 3051a4a0412a8487213b1563b8b09d75b4c2de27 (patch) | |
| tree | e128ae9052c1404ec1c264f84ae4c11c3c1ace88 | |
| parent | [locationinfo] Overhaul caching and prefetching of calendars (diff) | |
| download | slx-admin-3051a4a0412a8487213b1563b8b09d75b4c2de27.tar.gz slx-admin-3051a4a0412a8487213b1563b8b09d75b4c2de27.tar.xz slx-admin-3051a4a0412a8487213b1563b8b09d75b4c2de27.zip | |
[locationinfo] Update HisInOne title cleanup regex
| -rw-r--r-- | modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php index 1ed805b2..d3487f32 100644 --- a/modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php +++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php @@ -48,7 +48,7 @@ class CourseBackend_HisInOne extends ICalCourseBackend $title = parent::toTitle($event); // His in one seems to prefix *some* (but *not* all) of the lectures by their ID/("Nummer") // No clue what that format is supposed to be, this regex is some guesswork after observing this for a while - return preg_replace('#^[0-9][0-9A-ZÄÖÜ]{3,9}-[A-Za-z0-9/_ÄÖÜäöüß.-]{4,30}\s+#u', '', $title); + return preg_replace('#^[0-9](?:[0-9]{3}[A-Z]|[0-9A-ZÄÖÜ]{3,9}-[A-Za-z0-9/_ÄÖÜäöüß.-]{4,30})\s+#u', '', $title); } public function checkConnection(): bool |
