mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 01:24:47 +08:00
Hotfix #3144
This commit is contained in:
parent
12d862ab2b
commit
ee1409f432
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user