diff --git a/yazi-plugin/preset/plugins/archive.lua b/yazi-plugin/preset/plugins/archive.lua index 4fcc5761..d10c0e2f 100644 --- a/yazi-plugin/preset/plugins/archive.lua +++ b/yazi-plugin/preset/plugins/archive.lua @@ -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