Skip to content

Commit

Permalink
#264: add *.7z to logs ext
Browse files Browse the repository at this point in the history
Fixed #264
  • Loading branch information
dgroup committed Nov 27, 2020
1 parent 264d5e0 commit f348561
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/lazylead/task/accuracy/logs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def matching(attachment)
name = attachment.attrs["filename"].downcase
return false unless attachment.attrs["size"].to_i > 5120
return true if File.extname(name).start_with?(".log", ".txt")
%w[.log.zip .log.gz .log.tar.gz].any? { |l| name.end_with? l }
%w[.log.zip .log.gz .log.tar.gz logs.7z log.7z].any? do |l|
name.end_with? l
end
end
end
end

0 comments on commit f348561

Please sign in to comment.