stand/lua: Use escaped dot instead of single character class
This commit is contained in:
parent
ab4a4d40ae
commit
5f9d54f4da
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329393
@ -34,7 +34,7 @@ local core = require("core");
|
|||||||
-- XXX TODO: This should be fixed in the interpreter to not print decimals
|
-- XXX TODO: This should be fixed in the interpreter to not print decimals
|
||||||
function intstring(num)
|
function intstring(num)
|
||||||
local str = tostring(num)
|
local str = tostring(num)
|
||||||
local decimal = string.find(str, "[.]")
|
local decimal = string.find(str, "%.")
|
||||||
|
|
||||||
if decimal then
|
if decimal then
|
||||||
return string.sub(str, 1, decimal - 1)
|
return string.sub(str, 1, decimal - 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user