There was an error while loading. Please reload this page.
1 parent 28e7fd3 commit d9ad582Copy full SHA for d9ad582
1 file changed
cpp/ql/test/library-tests/regex/regexp.cpp
@@ -32,8 +32,8 @@ std::regex r_cc2("[a-fA-F0-9_]");
32
std::regex r_cc3("[\\w]+");
33
std::regex r_cc4("\\[\\][123]");
34
std::regex r_cc5("[^A-Z]");
35
-std::regex r_cc6("[]]"); // MRI gives a warning, but accepts this as matching ']'
36
-std::regex r_cc7("[^]]"); // MRI gives a warning, but accepts this as matching anything except ']'
+std::regex r_cc6("[]]"); // Not a valid regex
+std::regex r_cc7("[^]]"); // Not a valid regex
37
std::regex r_cc8("[^-]");
38
std::regex r_cc9("[|]");
39
std::regex r_cc10("[\\b]");
0 commit comments