mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-28 23:12:47 +00:00
Fixed CFG file loading with Windows encoding (fixes #80)
This commit is contained in:
parent
cf0988d442
commit
e9d17e8572
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]+"
|
local blockExpr = "%[("..idExpr..")%][\r\n]+(.-[\r\n]+)[\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