Skip to content

Commit

Permalink
t Make regular expression case-insensitive
Browse files Browse the repository at this point in the history
To fix Windows VS-2017 CI builds
  • Loading branch information
claremacrae committed Apr 30, 2021
1 parent 5a90b94 commit 9456525
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/DocTest_Tests/namers/TemplatedCustomNamerTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ Also available:
TestSourceDirectory = {TestSourceDirectory}
)";
TemplatedCustomNamer namer(templateText);
std::regex pattern = std::regex(R"(TestSourceDirectory = .*DocTest_Tests/)",
std::regex_constants::icase);
Approvals::verify("For template: " + fullText + "\n\n" +
namer.getApprovedFileAsPath(".txt").toString("/"),
Options().withScrubber(Scrubbers::createRegexScrubber(
R"(TestSourceDirectory = .*DocTest_Tests/)",
pattern,
"{TestSourceDirectory} = <full path to "
"sources>ApprovalTests.cpp/tests/DocTest_Tests/")));
}
Expand Down

0 comments on commit 9456525

Please sign in to comment.