From d574b536baf1cb9b9ac7dd1fcdd208cdca8769af Mon Sep 17 00:00:00 2001 From: mvglasow Date: Sat, 14 Jun 2025 17:03:14 +0300 Subject: [PATCH] [traffxml] Fix ISO8601 parser regex Signed-off-by: mvglasow --- traffxml/traff_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traffxml/traff_model.cpp b/traffxml/traff_model.cpp index 68e099daa..75fc35d9c 100644 --- a/traffxml/traff_model.cpp +++ b/traffxml/traff_model.cpp @@ -96,7 +96,7 @@ std::optional IsoTime::ParseIsoTime(std::string timeString) * 11: :00 (UTC offset, minutes, prefixed with separator) * 12: 00 (UTC offset, minutes, unsigned; blank for Z or if not specified) */ - std::regex iso8601Regex("([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}(.[0-9]*)?)(Z|(([+-][0-9]{2})(:?([0-9]{2}))?))?"); + std::regex iso8601Regex("([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}(\\.[0-9]*)?)(Z|(([+-][0-9]{2})(:?([0-9]{2}))?))?"); std::smatch iso8601Matcher; if (std::regex_search(timeString, iso8601Matcher, iso8601Regex))