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

This commit is contained in:
Kyle Evans 2018-02-16 18:50:06 +00:00
parent ab4a4d40ae
commit 5f9d54f4da
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329393

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)