summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/base/semver.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/base/semver.lua b/xmake/core/base/semver.lua
index 233089208..1d7b42920 100644
--- a/xmake/core/base/semver.lua
+++ b/xmake/core/base/semver.lua
@@ -93,6 +93,11 @@ function _instance:gsub(...)
return self:rawstr():gsub(...)
end
+-- add string compatible interface, string.split
+function _instance:split(...)
+ return self:rawstr():split(...)
+end
+
-- v1 == v2 (str/ver)?
function _instance:eq(version)
if type(version) == "string" then