summaryrefslogtreecommitdiff
path: root/render-test
diff options
context:
space:
mode:
authorzmiao <miao.zhao@mapbox.com>2019-11-04 18:34:30 +0200
committerGitHub <noreply@github.com>2019-11-04 18:34:30 +0200
commitd8b1b2bacf0dd9812d62077a825067441037791b (patch)
treee4fdebbe1b0ee2f2146122643f34c9cbf540e7c2 /render-test
parent5b38cfee18800cbb3c6a3186882744592662c3d6 (diff)
downloadqtlocation-mapboxgl-d8b1b2bacf0dd9812d62077a825067441037791b.tar.gz
[render-test]Fix regex match for testFilter input (#15886)
Diffstat (limited to 'render-test')
-rw-r--r--render-test/manifest_parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/render-test/manifest_parser.cpp b/render-test/manifest_parser.cpp
index f1884634e5..3e56138e83 100644
--- a/render-test/manifest_parser.cpp
+++ b/render-test/manifest_parser.cpp
@@ -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;
}