Sha256: 063ebdfe86007ecfda8cdc995a304f3b4e76cfe7a43bca48a51caf60dc2e0556

Contents?: true

Size: 430 Bytes

Versions: 9

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

module Browser
  class QQ < Base
    def id
      :qq
    end

    def name
      "QQ Browser"
    end

    def full_version
      ua[%r{(?:Mobile MQQBrowser)/([\d.]+)}i, 1] ||
        ua[%r{(?:QQBrowserLite)/([\d.]+)}i, 1] ||
        ua[%r{(?:QQBrowser)/([\d.]+)}i, 1] ||
        ua[%r{(?:QQ)/([\d.]+)}i, 1] ||
        "0.0"
    end

    def match?
      ua =~ %r{QQ/|QQBrowser}i
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
browser-5.1.0 lib/browser/qq.rb
browser-5.0.0 lib/browser/qq.rb
browser-4.2.0 lib/browser/qq.rb
browser-4.1.0 lib/browser/qq.rb
browser-4.0.0 lib/browser/qq.rb
browser-3.0.3 lib/browser/qq.rb
browser-3.0.2 lib/browser/qq.rb
browser-3.0.1 lib/browser/qq.rb
browser-3.0.0 lib/browser/qq.rb