[libcxx-commits] [libcxx] [regex] fix uncaught exception when string is like "\\_" (PR #129348)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Mar 9 09:31:41 PDT 2025
================
@@ -1305,6 +1305,12 @@ int main(int, char**)
assert(m.position(0) == 0);
assert(m.str(0) == s);
}
+ {
+ std::cmatch m;
+ const char s[] = "$_se";
+ assert(std::regex_match(s, m, std::regex("\\$\\_se")));
+ assert(m.size() == 1);
+ }
----------------
mordante wrote:
It seems the CI is green now :-)
https://github.com/llvm/llvm-project/pull/129348
More information about the libcxx-commits
mailing list