mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-10 06:41:53 +00:00
Fixed CFG loading with Unix file endings (refs #80)
This commit is contained in:
parent
e9d17e8572
commit
db6a378032
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ function files.loadFromCFG(fileName, idExpr)
|
||||||
|
|
||||||
if not fileString then return 0, {} end
|
if not fileString then return 0, {} end
|
||||||
|
|
||||||
local blockExpr = "%[("..idExpr..")%][\r\n]+(.-[\r\n]+)[\r\n]+[\r\n]+"
|
local blockExpr = "%[("..idExpr..")%][\r\n]+([^[]+)[\r\n]+"
|
||||||
local attrExpr = "([a-z0-9_]+) += +(.-)[\r\n]+"
|
local attrExpr = "([a-z0-9_]+) += +(.-)[\r\n]+"
|
||||||
|
|
||||||
for id, values in string.gmatch(fileString, blockExpr) do
|
for id, values in string.gmatch(fileString, blockExpr) do
|
||||||
|
|
Loading…
Reference in a new issue