From 6b728a79a0706924e76f117086bbfd1081de57ff Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Wed, 8 May 2024 14:34:16 +0300 Subject: [PATCH] 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 --- src/server/ContextPublisher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1