lib/cms_scanner/finders/finder.rb in cms_scanner-0.12.1 vs lib/cms_scanner/finders/finder.rb in cms_scanner-0.12.2

- old
+ new

@@ -55,13 +55,15 @@ end # @param [String, Class ] klass # @return [ String ] def found_by(klass = self.class) + labels = %w[aggressive passive] + caller_locations.each do |call| label = call.label - next unless %w[aggressive passive].include? label + next unless labels.include? label title = klass.to_s.demodulize.gsub(/(\d+)[a-z]+/i, '_\0').titleize(keep_id_suffix: true) return "#{title} (#{label.capitalize} Detection)" end