summaryrefslogtreecommitdiff
path: root/xmake/core/tool/tool.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/tool/tool.lua')
-rw-r--r--xmake/core/tool/tool.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/tool/tool.lua b/xmake/core/tool/tool.lua
index 90110fc71..209673e6e 100644
--- a/xmake/core/tool/tool.lua
+++ b/xmake/core/tool/tool.lua
@@ -77,7 +77,7 @@ function tool._find(root, name)
name = (name:gsub("%s%-+%w+", " "))
-- get the last name by ' ': xxx xxx toolname
- local names = name:split("%s+")
+ local names = name:split("%s")
if #names > 0 then
name = names[#names]
end