aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_integrate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/src/commands_integrate.cpp')
-rw-r--r--toolsrc/src/commands_integrate.cpp5
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;