From 4cfb6b0cb2c06f29af289ab97ddee580e7d54e2c Mon Sep 17 00:00:00 2001 From: Antti Soininen <soininen@ill.fr> Date: Tue, 24 Oct 2017 17:39:09 +0200 Subject: [PATCH] Code beautification. Re #20969 --- Framework/Types/src/Core/DateAndTimeHelpers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Framework/Types/src/Core/DateAndTimeHelpers.cpp b/Framework/Types/src/Core/DateAndTimeHelpers.cpp index 2daf0020b3f..c7ac9ed51ce 100644 --- a/Framework/Types/src/Core/DateAndTimeHelpers.cpp +++ b/Framework/Types/src/Core/DateAndTimeHelpers.cpp @@ -13,7 +13,8 @@ namespace DateAndTimeHelpers { */ bool stringIsISO8601(const std::string &date) { // On Ubuntu 14.04, std::regex seems to be broken, thus boost. - const boost::regex r(R"(^\d{4}-[01]\d-[0-3]\d([T\s][0-2]\d:[0-5]\d(:\d{2})?(.\d+)?(Z|[+-]\d{2}(:\d{2})?)?)?$)"); + const boost::regex r( + R"(^\d{4}-[01]\d-[0-3]\d([T\s][0-2]\d:[0-5]\d(:\d{2})?(.\d+)?(Z|[+-]\d{2}(:\d{2})?)?)?$)"); return boost::regex_match(date, r); } } // namespace DateAndTimeHelpers -- GitLab