Sha256: 2e6bb3e28505632608bd1c1aea50df1b4a76c33a2bf86d520d42d4bc86123bf1
Contents?: true
Size: 850 Bytes
Versions: 50
Compression:
Stored size: 850 Bytes
Contents
# frozen_string_literal: true module CMSScanner module Finders class Finder module SmartURLChecker # Findings class Findings < Array def <<(finding) return self unless finding each do |f| next unless f == finding && f.found_by == finding.found_by # This makes sure entries added are unique # and prevent pages redirecting to the same one to be added twice entries_to_add = finding.interesting_entries - f.interesting_entries return self if entries_to_add.empty? entries_to_add.each { |entry| f.interesting_entries << entry } f.confidence += finding.confidence return self end super(finding) end end end end end end
Version data entries
50 entries across 50 versions & 3 rubygems