lib/browser_sniffer/patterns.rb in browser_sniffer-1.2.1 vs lib/browser_sniffer/patterns.rb in browser_sniffer-1.2.2
- old
+ new
@@ -330,10 +330,10 @@
/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)[\/\s-]?([\w\.-]+)*/i, # Joli/Ubuntu/Debian/SUSE/Gentoo/Arch/Slackware/Fedora/Mandriva/CentOS/PCLinuxOS/RedHat/Zenwalk
/(hurd|linux)\s?([\w\.]+)*/i, # Hurd/Linux
/(gnu)\s?([\w\.]+)*/i # GNU
], [:name, :version, [:type, :linux]], [
/(cros)\s[\w]+\s([\w\.]+\w)/i # Chromium OS
- ], [[:name, 'Chromium OS'], :version],[
+ ], [[:name, 'Chromium OS'], :version, [:type, :chromium_os]],[
# Solaris
/(sunos)\s?([\w\.]+\d)*/i # Solaris
], [[:name, 'Solaris'], :version], [
# BSD based
/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i # FreeBSD/NetBSD/OpenBSD/PC-BSD/DragonFly