summaryrefslogtreecommitdiff
path: root/xmake/core/base/string.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-06-30 14:11:00 +0800
committerruki <[email protected]>2016-06-30 14:11:00 +0800
commit8732e635f54ecc9bb5722112a2245d55ef4bd2ce (patch)
treef2a0efa3a6d2d300dc06ff97014db0d1abf47171 /xmake/core/base/string.lua
parent2ccf6b72c850ce1ed865426fd4e28130ee04f461 (diff)
fix check g++ toolchains failed
Diffstat (limited to 'xmake/core/base/string.lua')
-rw-r--r--xmake/core/base/string.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/base/string.lua b/xmake/core/base/string.lua
index b3abe36ec..431577a23 100644
--- a/xmake/core/base/string.lua
+++ b/xmake/core/base/string.lua
@@ -41,12 +41,12 @@ function string:find_last(pattern, plain)
end
end
--- split string with the given pattern
-function string:split(pattern)
+-- split string with the given characters
+function string:split(chars)
-- split it
local list = {}
- self:gsub("[^" .. pattern .."]+", function(v) table.insert(list, v) end )
+ self:gsub("[^" .. chars .."]+", function(v) table.insert(list, v) end )
return list
end