From d19da54f1abf3bd9a0aa7eca5ea967900ed2f5fe Mon Sep 17 00:00:00 2001 From: ptahmose Date: Fri, 20 Sep 2024 17:59:39 +0200 Subject: [PATCH] fix unittest-error with msys2 (cygwin/libstdc++) - I presume the flag 'icase' is not supported? --- Src/libCZI/CziMetadataBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/libCZI/CziMetadataBuilder.cpp b/Src/libCZI/CziMetadataBuilder.cpp index 9045af01..e3e249f0 100644 --- a/Src/libCZI/CziMetadataBuilder.cpp +++ b/Src/libCZI/CziMetadataBuilder.cpp @@ -1104,7 +1104,7 @@ static bool TryRetrieveIdAndNameAttributeFromChannels(IXmlNodeRw* root, int chan /*static*/void libCZI::MetadataUtils::SetOrAddCustomKeyValuePair(libCZI::ICziMetadataBuilder* builder, const string& key, const libCZI::CustomValueVariant& value) { auto root = builder->GetRootNode(); - const regex isValidNodename(R"(^([_a-z][\w]?|[a-w_yz][\w]{2,}|[_a-z][a-l_n-z\d][\w]+|[_a-z][\w][a-k_m-z\d][\w]*)$)", regex_constants::icase); + const regex isValidNodename(R"(^([_a-zA-Z][\w]?|[a-wA-W_yzYZ][\w]{2,}|[_a-zA-Z][a-lA-L_n-zN-Z\d][\w]+|[_a-zA-Z][\w][a-kA-K_m-zM-Z\d][\w]*)$)"); if (!regex_match(key, isValidNodename)) {