fix "join"
This commit is contained in:
@@ -47,11 +47,11 @@ function split( delimiter, text )
|
|||||||
end
|
end
|
||||||
|
|
||||||
function join( delimiter, list )
|
function join( delimiter, list )
|
||||||
local ret = ""
|
local ret = list[1]
|
||||||
for i = 1,table.getn(list) do
|
for i = 2,table.getn(list) do
|
||||||
ret = ret .. delimiter .. list[i]
|
ret = ret .. delimiter .. list[i]
|
||||||
end
|
end
|
||||||
return ret
|
return ret or ""
|
||||||
end
|
end
|
||||||
|
|
||||||
function wrap(val,n)
|
function wrap(val,n)
|
||||||
|
|||||||
Reference in New Issue
Block a user