Sha256: 1e663e6cdb3f906d08ac710bb0c6b06a22298b1f26274c03b8d8b39a170cf51c

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 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 =~ /QQ/i
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
browser-2.7.1 lib/browser/qq.rb