This commit is contained in:
Alexander Karatarakis 2018-03-27 21:39:23 -07:00
parent 12d862ab2b
commit ee1409f432

View File

@ -80,7 +80,7 @@ namespace vcpkg
static const std::regex URL_REGEX{Strings::format(R"###(<url>([\s\S]*?)</url>)###")};
const std::regex tool_regex{
Strings::format(R"###(<tool[\s]+name="%s"[\s]+%s>([\s\S]*?)</tool>)###", tool, OS_STRING)};
Strings::format(R"###(<tool[\s]+name="%s"[\s]*%s>([\s\S]*?)</tool>)###", tool, OS_STRING)};
std::smatch match_tool;
const bool has_match_tool = std::regex_search(XML.cbegin(), XML.cend(), match_tool, tool_regex);