mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 07:58:45 +03:00
Improve browser detection: Netscape with version
This commit is contained in:
parent
f715023f47
commit
559ecaacb6
@ -319,7 +319,7 @@
|
|||||||
], [NAME, VERSION], [
|
], [NAME, VERSION], [
|
||||||
|
|
||||||
// Gecko based
|
// Gecko based
|
||||||
/(navigator|netscape)\/([\w\.-]+)/i // Netscape
|
/(navigator|netscape\d?)\/([\w\.-]+)/i // Netscape
|
||||||
], [[NAME, 'Netscape'], VERSION], [
|
], [[NAME, 'Netscape'], VERSION], [
|
||||||
/mobile vr; rv:([\w\.]+)\).+firefox/i // Firefox Reality
|
/mobile vr; rv:([\w\.]+)\).+firefox/i // Firefox Reality
|
||||||
], [VERSION, [NAME, FIREFOX+' Reality']], [
|
], [VERSION, [NAME, FIREFOX+' Reality']], [
|
||||||
|
@ -748,6 +748,16 @@
|
|||||||
"major" : "8"
|
"major" : "8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"desc" : "Netscape 6",
|
||||||
|
"ua" : "Mozilla/5.0 (Windows; U; Win95; de-DE; rv:0.9.2) Gecko/20010726 Netscape6/6.1",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "Netscape",
|
||||||
|
"version" : "6.1",
|
||||||
|
"major" : "6"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"desc" : "Nokia Browser",
|
"desc" : "Nokia Browser",
|
||||||
"ua" : "Mozilla/5.0 (Symbian/3; Series60/5.2 NokiaN8-00/025.007; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/533.4 (KHTML, like Gecko) NokiaBrowser/7.3.1.37 Mobile Safari/533.4 3gpp-gba",
|
"ua" : "Mozilla/5.0 (Symbian/3; Series60/5.2 NokiaN8-00/025.007; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/533.4 (KHTML, like Gecko) NokiaBrowser/7.3.1.37 Mobile Safari/533.4 3gpp-gba",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user