We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xlua-framework/Assets/LuaScripts/Common/StringUtil.lua
Line 33 in a038015
测试用例:string.split(“123|123|1”, “|”) 预期结果["123", "123", "1"] 实际结果["123", "123", ""]
The text was updated successfully, but these errors were encountered:
另外注解里参数错了。。
Sorry, something went wrong.
确实错了 提供一个亲测有效的:
local function split(input, sep) local t = {} local match_regex = "([^"..sep.."]+)" for str in string.gmatch(input, match_regex) do table.insert(t, str) end return t end
No branches or pull requests
xlua-framework/Assets/LuaScripts/Common/StringUtil.lua
Line 33 in a038015
测试用例:string.split(“123|123|1”, “|”)
预期结果["123", "123", "1"]
实际结果["123", "123", ""]
The text was updated successfully, but these errors were encountered: