Allow usage of glob-like string for task names.

This commit is contained in:
Mikaël Capelle
2020-05-22 21:48:44 +02:00
parent 3da9e3b434
commit a179315a73
3 changed files with 29 additions and 14 deletions
+5
View File
@@ -318,6 +318,11 @@ url make_appveyor_artifact_url(
project + "/artifacts/" + filename + "?job=Platform:%20" + arch_s;
}
bool glob_match(const std::string& pattern, const std::string& s)
{
return std::regex_match(s, std::regex{ replace_all(pattern, "*", ".*") });
}
std::string replace_all(
std::string s, const std::string& from, const std::string& to)
{