This commit is contained in:
WarmUpTill
2026-03-07 21:15:37 +01:00
committed by WarmUpTill
parent ff98ec36d6
commit 70e5f6002d
2 changed files with 3 additions and 14 deletions

View File

@@ -80,11 +80,3 @@ TEST_CASE("Matches (PartialMatchRegexConfig)", "[regex-config]")
result = regex.Matches(std::string("abc"), "a");
REQUIRE(result == true);
}
TEST_CASE("EscapeForRegex , [text-helpers]")
{
REQUIRE(advss::EscapeForRegex("") == "");
REQUIRE(advss::EscapeForRegex("abcdefg") == "abcdefg");
REQUIRE(advss::EscapeForRegex("(abcdefg)") == "\\(abcdefg\\)");
REQUIRE(advss::EscapeForRegex("\\(abcdefg)") == "\\\\(abcdefg\\)");
}