mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
fix: 7zip shows different error messages for wrong password (#1451)
This commit is contained in:
parent
3bb867c5bd
commit
4150f4014c
1 changed files with 1 additions and 4 deletions
|
|
@ -137,9 +137,6 @@ function M:list_files(args, skip, limit)
|
|||
return files, i, code
|
||||
end
|
||||
|
||||
function M:is_encrypted(s)
|
||||
return s:find("Cannot open encrypted archive. Wrong password?", 1, true)
|
||||
or s:find("Data Error in encrypted file. Wrong password?", 1, true)
|
||||
end
|
||||
function M:is_encrypted(s) return s:find(". Wrong password?", 1, true) end
|
||||
|
||||
return M
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue