mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
Merge branch 'patch-2' of https://github.com/OlafvdSpek/vcpkg into OlafvdSpek-patch-2
This commit is contained in:
commit
294404e476
@ -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…
x
Reference in New Issue
Block a user