Sha256: 5cb9b4799939c302c470e84f4a5062a4d6535dfc19681532c48b5d30e1b1de79

Contents?: true

Size: 207 Bytes

Versions: 5

Compression:

Stored size: 207 Bytes

Contents

# frozen_string_literal: true

module Browser
  class Bot
    class KeywordMatcher
      def self.call(ua, _browser)
        ua.match?(/crawl|fetch|search|monitoring|spider|bot/)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
browser-6.1.0 lib/browser/bot/keyword_matcher.rb
browser-6.0.0 lib/browser/bot/keyword_matcher.rb
browser-5.3.1 lib/browser/bot/keyword_matcher.rb
browser-5.3.0 lib/browser/bot/keyword_matcher.rb
browser-5.2.0 lib/browser/bot/keyword_matcher.rb