mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 09:41:39 +08:00
Merge branch 'OlafvdSpek-patch-2'
This commit is contained in:
commit
a312cb4939
@ -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) + "...";
|
||||
|
Loading…
Reference in New Issue
Block a user