[render-test]Fix regex match for testFilter input (#15886)

This commit is contained in:
zmiao
2019-11-04 18:34:30 +02:00
committed by GitHub
parent 5b38cfee18
commit d8b1b2bacf

View File

@@ -385,8 +385,8 @@ mbgl::optional<Manifest> ManifestParser::parseManifest(const std::string& manife
continue;
}
for (auto& testPath : mbgl::filesystem::recursive_directory_iterator(path)) {
// Skip paths that fail regexp match.
if (!testFilter.empty() && !std::regex_match(testPath.path().string(), std::regex(testFilter))) {
// Skip paths that fail regexp search.
if (!testFilter.empty() && !std::regex_search(testPath.path().string(), std::regex(testFilter))) {
continue;
}