Skip to content

Commit d9ad582

Browse files
committed
C++: Update regex test comment
1 parent 28e7fd3 commit d9ad582

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpp/ql/test/library-tests/regex/regexp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ std::regex r_cc2("[a-fA-F0-9_]");
3232
std::regex r_cc3("[\\w]+");
3333
std::regex r_cc4("\\[\\][123]");
3434
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 ']'
35+
std::regex r_cc6("[]]"); // Not a valid regex
36+
std::regex r_cc7("[^]]"); // Not a valid regex
3737
std::regex r_cc8("[^-]");
3838
std::regex r_cc9("[|]");
3939
std::regex r_cc10("[\\b]");

0 commit comments

Comments
 (0)