From: Slava Barinov Date: Wed, 8 May 2024 11:34:16 +0000 (+0300) Subject: Fixed the regex compilation with GCC 13 X-Git-Tag: accepted/tizen/unified/x/20240509.085336^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_unified_dev;p=platform%2Fcore%2Fcontext%2Fjob-scheduler.git Fixed the regex compilation with GCC 13 We should explicitly show that \w is not a range start, or we get an exception: "Invalid start of '[x-x]' range in regular expression" in run-time Change-Id: I69be8f03b6430102325b33de9c949f99a75c007d --- diff --git a/src/server/ContextPublisher.cpp b/src/server/ContextPublisher.cpp index 2fddfe4..e6015fa 100644 --- a/src/server/ContextPublisher.cpp +++ b/src/server/ContextPublisher.cpp @@ -23,7 +23,7 @@ #include "ContextPublisher.h" #include "publisher/CustomPublisher.h" -#define CUSTOM_URI_REGEX R"~(^http:\/\/[\w-\.]+\/context\/custom\/[\w-\._\/]+$)~" +#define CUSTOM_URI_REGEX R"~(^http:\/\/[\w\-\.]+\/context\/custom\/[\w\-\._\/]+$)~" using namespace ctx;