Sha256: b0254a3c9393772ce4b83be6fb5b9a15663467d1315abd3375b0641d5f30558b

Contents?: true

Size: 435 Bytes

Versions: 6

Compression:

Stored size: 435 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.match?(%r{QQ/|QQBrowser}i)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
browser-6.2.0 lib/browser/qq.rb
browser-6.1.0 lib/browser/qq.rb
browser-6.0.0 lib/browser/qq.rb
browser-5.3.1 lib/browser/qq.rb
browser-5.3.0 lib/browser/qq.rb
browser-5.2.0 lib/browser/qq.rb