From 90486977de0eccd76f331c0acbae1090aa52e18f Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Mon, 13 Aug 2018 14:49:07 +0000 Subject: [PATCH] lualoader: Fix parsing of negative number loader.conf(5) variables They would previously cause errors, as the regex for these did not tolerate a leading negative sign, and the variable would simply not parse. --- stand/lua/config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/lua/config.lua b/stand/lua/config.lua index b6dab481300a..139c61d64220 100644 --- a/stand/lua/config.lua +++ b/stand/lua/config.lua @@ -198,7 +198,7 @@ local pattern_table = { }, -- env_var=num { - str = "^%s*([%w%p]+)%s*=%s*(%d+)%s*(.*)", + str = "^%s*([%w%p]+)%s*=%s*(-?%d+)%s*(.*)", process = function(k, v) if setEnv(k, processEnvVar(v)) ~= 0 then print(MSG_FAILSETENV:format(k, tostring(v)))