mirror of
https://github.com/ModOrganizer2/mob.git
synced 2026-07-27 14:07:05 -07:00
Allow usage of glob-like string for task names.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user