lib/mihari/analyzers/crtsh.rb in mihari-3.6.0 vs lib/mihari/analyzers/crtsh.rb in mihari-3.6.1
- old
+ new
@@ -21,9 +21,14 @@
def api
@api ||= ::Crtsh::API.new
end
+ #
+ # Search
+ #
+ # @return [Array<Hash>]
+ #
def search
exclude = exclude_expired ? "expired" : nil
api.search(query, exclude: exclude)
rescue ::Crtsh::Error => _e
[]