mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 19:22:32 +00:00
issue #21 fix attempt
This commit is contained in:
parent
6a589e246f
commit
6d499c69d7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue