diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-04-14 16:01:19 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-04-14 16:01:19 -0700 |
| commit | 1c08a42091cb0addd1e0c1daf27d24bf4e9d237f (patch) | |
| tree | f8c69e701dfae791fe180a8c24b35a4195668afd /toolsrc/src/commands_integrate.cpp | |
| parent | 23366aede0cb1ccfeac85a28308bc722811b18bc (diff) | |
| parent | b3541eff15847b2cc90736a609b8c6f99ce74a9d (diff) | |
| download | vcpkg-1c08a42091cb0addd1e0c1daf27d24bf4e9d237f.tar.gz vcpkg-1c08a42091cb0addd1e0c1daf27d24bf4e9d237f.zip | |
Merge from master
Diffstat (limited to 'toolsrc/src/commands_integrate.cpp')
| -rw-r--r-- | toolsrc/src/commands_integrate.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/toolsrc/src/commands_integrate.cpp b/toolsrc/src/commands_integrate.cpp index 819c29082..5772843df 100644 --- a/toolsrc/src/commands_integrate.cpp +++ b/toolsrc/src/commands_integrate.cpp @@ -67,10 +67,7 @@ namespace vcpkg::Commands::Integrate dir_id.erase(1, 1); // Erasing the ":" // NuGet id cannot have invalid characters. We will only use alphanumeric and dot. - Util::keep_if(dir_id, [](char c) - { - return isalnum(c) || (c == '.'); - }); + Util::erase_remove_if(dir_id, [](char c) { return !isalnum(c) && (c != '.'); }); const std::string nuget_id = "vcpkg." + dir_id; return nuget_id; |
