svn commit: r329393 - head/stand/lua
Kyle Evans
kevans at FreeBSD.org
Fri Feb 16 18:50:07 UTC 2018
Author: kevans
Date: Fri Feb 16 18:50:06 2018
New Revision: 329393
URL: https://svnweb.freebsd.org/changeset/base/329393
Log:
stand/lua: Use escaped dot instead of single character class
Modified:
head/stand/lua/screen.lua
Modified: head/stand/lua/screen.lua
==============================================================================
--- head/stand/lua/screen.lua Fri Feb 16 18:49:50 2018 (r329392)
+++ head/stand/lua/screen.lua Fri Feb 16 18:50:06 2018 (r329393)
@@ -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)
More information about the svn-src-all
mailing list