Sha256: 4fe96e1bd006bceef3442c94fc6dc7d0d06bcc169a828a4c2bacf0e17925e4ec
Contents?: true
Size: 475 Bytes
Versions: 6
Compression:
Stored size: 475 Bytes
Contents
# frozen_string_literal: true module Browser class Chrome < Base def id :chrome end def name "Chrome" end def full_version # Each regex on its own line to enforce precedence. ua[%r[Chrome/([\d.]+)], 1] || ua[%r[CriOS/([\d.]+)], 1] || ua[%r[Safari/([\d.]+)], 1] || ua[%r[AppleWebKit/([\d.]+)], 1] || "0.0" end def match? ua =~ /Chrome|CriOS/ && !opera? && !edge? end end end
Version data entries
6 entries across 6 versions & 2 rubygems