Allow underscores in ini keys

This commit is contained in:
Bart van Strien 2014-06-11 20:14:32 +02:00
parent 649d4da453
commit d46c17136a

View File

@ -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