Merge branch 'patch-2' of https://github.com/OlafvdSpek/vcpkg into OlafvdSpek-patch-2

This commit is contained in:
Alexander Karatarakis 2017-03-29 13:17:42 -07:00
commit 294404e476

View File

@ -47,7 +47,7 @@ namespace vcpkg::details
std::string shorten_description(const std::string& desc)
{
auto simple_desc = std::regex_replace(desc, std::regex("\\n( |\\t)?"), "");
auto simple_desc = std::regex_replace(desc, std::regex("\\s+"), " ");
return simple_desc.size() <= 52
? simple_desc
: simple_desc.substr(0, 49) + "...";