mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
Add Polaris, Tasman, PS Vita, Hurd, AmigaOS, MorphOS
This commit is contained in:
parent
527ba70cf4
commit
9a6479193a
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"title": "UA-Parser.JS",
|
"title": "UA-Parser.JS",
|
||||||
"name": "ua-parser-js",
|
"name": "ua-parser-js",
|
||||||
"version": "0.4.9",
|
"version": "0.4.10",
|
||||||
"author": "Faisal Salman <fyzlman@gmail.com> (http://faisalman.com)",
|
"author": "Faisal Salman <fyzlman@gmail.com> (http://faisalman.com)",
|
||||||
"description": "Lightweight JavaScript-based user-agent string parser",
|
"description": "Lightweight JavaScript-based user-agent string parser",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
23
ua-parser.js
23
ua-parser.js
@ -1,4 +1,4 @@
|
|||||||
// UA-Parser.JS v0.4.9
|
// UA-Parser.JS v0.4.10
|
||||||
// Lightweight JavaScript-based User-Agent string parser
|
// Lightweight JavaScript-based User-Agent string parser
|
||||||
// https://github.com/faisalman/ua-parser-js
|
// https://github.com/faisalman/ua-parser-js
|
||||||
//
|
//
|
||||||
@ -171,11 +171,10 @@
|
|||||||
/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i, // Mozilla
|
/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i, // Mozilla
|
||||||
|
|
||||||
// Other
|
// Other
|
||||||
/(uc\s?browser)\/?((\d+)?[\w\.]+)/i, // UCBrowser
|
/(uc\s?browser|polaris|lynx|dillo|icab|doris)[\/\s]?((\d+)?[\w\.]+)/i,
|
||||||
/(lynx|dillo|icab|doris)[\/\s]?((\d+)?[\w\.]+)/i, // Lynx/Dillo/iCab/Doris
|
// UCBrowser/Polaris/Lynx/Dillo/iCab/Doris
|
||||||
/(gobrowser)\/?[\d\.]*/i, // GoBrowser
|
/(gobrowser)\/?((\d+)?[\w\.]+)*/i, // GoBrowser
|
||||||
/(mosaic)[\/\s]((\d+)?[\w\.]+)/i
|
/(mosaic)[\/\s]((\d+)?[\w\.]+)/i // Mosaic
|
||||||
// Mosaic
|
|
||||||
], ['name', 'version', 'major']
|
], ['name', 'version', 'major']
|
||||||
],
|
],
|
||||||
|
|
||||||
@ -250,7 +249,8 @@
|
|||||||
|
|
||||||
/(presto)\/([\w\.]+)/i, // Presto
|
/(presto)\/([\w\.]+)/i, // Presto
|
||||||
/([aple]*webkit|trident|netfront)\/([\w\.]+)/i, // Webkit/Trident/NetFront
|
/([aple]*webkit|trident|netfront)\/([\w\.]+)/i, // Webkit/Trident/NetFront
|
||||||
/(khtml)\/([\w\.]+)/i // KHTML
|
/(khtml)\/([\w\.]+)/i, // KHTML
|
||||||
|
/(tasman)\s([\w\.]+)/i // Tasman
|
||||||
], ['name', 'version'], [
|
], ['name', 'version'], [
|
||||||
|
|
||||||
/rv\:([\w\.]+).*(gecko)/i // Gecko
|
/rv\:([\w\.]+).*(gecko)/i // Gecko
|
||||||
@ -276,14 +276,15 @@
|
|||||||
/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i // Symbian
|
/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i // Symbian
|
||||||
], [['name', 'Symbian'], 'version'],[
|
], [['name', 'Symbian'], 'version'],[
|
||||||
|
|
||||||
/(nintendo|playstation)\s([wids3portable]+)/i, // Nintendo/Playstation
|
/(nintendo|playstation)\s([wids3portablev]+)/i, // Nintendo/Playstation
|
||||||
|
|
||||||
// GNU/Linux based
|
// GNU/Linux based
|
||||||
/(mint)[\/\s\(]?(\w+)*/i, // Mint
|
/(mint)[\/\s\(]?(\w+)*/i, // Mint
|
||||||
/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)[\/\s-]?([\w\.-]+)*/i,
|
/(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
|
// Joli/Ubuntu/Debian/SUSE/Gentoo/Arch/Slackware
|
||||||
// Fedora/Mandriva/CentOS/PCLinuxOS/RedHat/Zenwalk
|
// Fedora/Mandriva/CentOS/PCLinuxOS/RedHat/Zenwalk
|
||||||
/(gnu|linux)\s?([\w\.]+)*/i // Other GNU/Linux
|
/(hurd|linux)\s?([\w\.]+)*/i, // Hurd/Linux
|
||||||
|
/(gnu)\s?([\w\.]+)*/i // GNU
|
||||||
], ['name', 'version'], [
|
], ['name', 'version'], [
|
||||||
|
|
||||||
/(cros)\s[\w]+\s([\w\.]+\w)/i // Chromium OS
|
/(cros)\s[\w]+\s([\w\.]+\w)/i // Chromium OS
|
||||||
@ -306,8 +307,8 @@
|
|||||||
// Other
|
// Other
|
||||||
/(haiku)\s(\w+)/i, // Haiku
|
/(haiku)\s(\w+)/i, // Haiku
|
||||||
/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i, // AIX
|
/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i, // AIX
|
||||||
/(macintosh|mac(?=_powerpc)|plan\s9|minix|beos|qnx|os\/2)[\/\s]?()*/i,
|
/(macintosh|mac(?=_powerpc)|plan\s9|minix|beos|qnx|os\/2|amigaos|morphos)/i,
|
||||||
// Plan9/Minix/BeOS/QNX/OS2
|
// Plan9/Minix/BeOS/QNX/OS2/AmigaOS/MorphOS
|
||||||
/(unix)\s?([\w\.]+)*/i // UNIX
|
/(unix)\s?([\w\.]+)*/i // UNIX
|
||||||
], ['name', 'version']
|
], ['name', 'version']
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user