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)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to