Exposed commify function to lua and made it handle decimal numbers.

This commit is contained in:
Kyzentun
2015-04-02 13:36:41 -06:00
parent da59f1d3b0
commit d789ef7c6b
6 changed files with 70 additions and 14 deletions
+1 -5
View File
@@ -60,11 +60,7 @@ function split(delimiter, text)
end
function join(delimiter, list)
local ret = list[1]
for i = 2,table.getn(list) do
ret = ret .. delimiter .. list[i]
end
return ret or ""
return table.concat(list, delimiter)
end
-- (c) 2006 Glenn Maynard