From d46c17136ad78ebf682f8ed37f1beb54871354bb Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Wed, 11 Jun 2014 20:14:32 +0200 Subject: [PATCH] Allow underscores in ini keys --- inifile/inifile.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inifile/inifile.lua b/inifile/inifile.lua index 5b04890..70042b5 100644 --- a/inifile/inifile.lua +++ b/inifile/inifile.lua @@ -77,7 +77,7 @@ function inifile.parse(name, backend) end -- Key-value pairs - local key, value = line:match("^(%w+)%s-=%s-(.+)$") + local key, value = line:match("^([%w_]+)%s-=%s-(.+)$") if tonumber(value) then value = tonumber(value) end if value == "true" then value = true end if value == "false" then value = false end