mirror of
https://github.com/bartbes/inifile.git
synced 2024-11-15 23:54:23 +00:00
Allow underscores in ini keys
This commit is contained in:
parent
649d4da453
commit
d46c17136a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user