From 361218f4984d429c1a518cb1dbd94612eab0ecaa Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Thu, 14 Dec 2023 14:44:11 +1100 Subject: Bug [#2405]. Fix regular expression bug in reverse direction where shortened match returned. --- test/unit/testDocument.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/unit/testDocument.cxx b/test/unit/testDocument.cxx index 52af45167..ba7bb8616 100644 --- a/test/unit/testDocument.cxx +++ b/test/unit/testDocument.cxx @@ -517,7 +517,7 @@ TEST_CASE("Document") { REQUIRE(substituted == "\tb\xCE\x93y\n"); match = doc.FindString(docLength, 0, longest, rePosix); - //REQUIRE(match == Match(16, 5)); + REQUIRE(match == Match(16, 5)); #ifndef NO_CXX11_REGEX match = doc.FindString(0, docLength, finding, reCxx11); -- cgit v1.2.3