stand/lua: Use escaped dot instead of single character class

This commit is contained in:
kevans 2018-02-16 18:50:06 +00:00
parent cb86f31818
commit 3c00d4a760

View File

@ -34,7 +34,7 @@ local core = require("core");
-- XXX TODO: This should be fixed in the interpreter to not print decimals
function intstring(num)
local str = tostring(num)
local decimal = string.find(str, "[.]")
local decimal = string.find(str, "%.")
if decimal then
return string.sub(str, 1, decimal - 1)