[metrics] Make the parsing of metrics even more strict

File must be `metrics.json`.
This commit is contained in:
Thiago Marcos P. Santos
2019-11-27 23:44:58 +02:00
parent d13562252d
commit 1455f6f581

View File

@@ -294,7 +294,7 @@ std::vector<std::string> readExpectedImageEntries(const mbgl::filesystem::path&
}
std::vector<std::string> readExpectedMetricEntries(const mbgl::filesystem::path& base) {
static const std::regex regex(".*/metrics.*.json");
static const std::regex regex(".*/metrics.json");
return readExpectedEntries(regex, base);
}