mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-24 11:37:12 +01:00
Replace all whitespace by a single space
This commit is contained in:
parent
a1cfa18481
commit
74352bc0a6
@ -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