summaryrefslogtreecommitdiff
path: root/xmake/core/project/project.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-04 22:41:25 +0800
committerruki <[email protected]>2019-06-04 10:08:31 +0800
commit18663d52e5ff484eea423f88cbf52cc10c5721f3 (patch)
tree3e1e147713b4ca50276b676b9b346f52f893708b /xmake/core/project/project.lua
parent255d51be7e7ed10a13a4cd55b5aae55079ab4bb9 (diff)
improve string.split
Diffstat (limited to 'xmake/core/project/project.lua')
-rw-r--r--xmake/core/project/project.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index 03909c93f..07fb6792f 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -660,7 +660,7 @@ function project._load_requires()
for _, requirestr in ipairs(table.wrap(requires_str)) do
-- get the package name
- local packagename = requirestr:split('%s+')[1]
+ local packagename = requirestr:split('%s')[1]
-- get alias
local alias = nil