Skip to content

Commit

Permalink
slight regex fix which caused a crash in the parser (please make a r…
Browse files Browse the repository at this point in the history
…eal api for the colloscope, I'm tired of parsing it by hand)
  • Loading branch information
FlashOnFire committed Jan 1, 2024
1 parent 724f890 commit 4300d20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class PolytechColloscopeClient {
?.trim();
}

var dateParsed = RegExp(r"(\d{1,2}) (.{3,9})").firstMatch(date)!;
var dateParsed = RegExp(r"(\d{1,2}) (.{3,9}) ").firstMatch(date)!;
var day = dateParsed.group(1)!;
var month = dateParsed.group(2)!.asMonthNumber;

Expand Down

0 comments on commit 4300d20

Please sign in to comment.