From afe6aca93fdd36e2dc04c832c74b566ac4742310 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 19 Sep 2022 23:13:07 +0200 Subject: [PATCH] fix export with the new format of hours used --- src/timetable.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/timetable.rs b/src/timetable.rs index 30fd1d3..edd69f3 100644 --- a/src/timetable.rs +++ b/src/timetable.rs @@ -236,7 +236,8 @@ pub fn build(timetable: T, dates: D) -> Vec { // h1 => heure de début | m1 => minute de début // h2 => heure de fin | m2 => minute de fin let re = - Regex::new(r"(?P

\d{1,2})h(?P\d{1,2})?.(?P

\d{1,2})h(?P\d{1,2})?").unwrap(); + Regex::new(r"(?P

\d{1,2})(h|:)(?P\d{1,2})?.(?P

\d{1,2})(h|:)(?P\d{1,2})?") + .unwrap(); for hour in timetable.0 { let captures = re.captures(&hour).unwrap();