Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2018 18:50:06 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329393 - head/stand/lua
Message-ID:  <201802161850.w1GIo64V058931@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802161850.w1GIo64V058931>