1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-22 11:12:31 +00:00

issue #21 fix attempt

This commit is contained in:
luke bonham 2013-11-02 11:29:56 +01:00
parent 6a589e246f
commit 6d499c69d7

View file

@ -176,7 +176,7 @@ function parse_desktop_file(arg)
local group = nil
for line in io.lines(file) do
group = line:match("^%[([^%[%]%c]+)%]") or group
group = line:match("^%[([^%[%]%c]+)%]*(.-)%s*$") or group
if group then
result[group] = check_nil(result[group], {})
@ -185,7 +185,6 @@ function parse_desktop_file(arg)
end
end
end
return result
end