correct parsing unzip output (#10625)

reviewable/pr10626/r1
hius07 11 months ago committed by GitHub
parent b8af326836
commit 5db765e4e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -98,7 +98,7 @@ function ArchiveViewer:getZipListTable(file)
local std_out = io.popen("unzip ".."-qql \""..file.."\"")
for line in std_out:lines() do
-- entry datetime not used so far
local fsize, fname = string.match(line, "%s+(%d+)%s+%d%d%-%d%d%-%d%d%d%d%s+%d%d:%d%d%s+(.+)")
local fsize, fname = string.match(line, "%s+(%d+)%s+[-0-9]+%s+[0-9:]+%s+(.+)")
parse_path(fname, fsize or 0)
end
end

Loading…
Cancel
Save