mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
Merge pull request #265 from brophdawg11/support-ios-gsa
Add support for Google Search Appliance on iOS
This commit is contained in:
commit
eeb1b9ef81
@ -326,6 +326,9 @@
|
|||||||
/version\/([\w\.]+).+?(mobile\s?safari|safari)/i // Safari & Safari Mobile
|
/version\/([\w\.]+).+?(mobile\s?safari|safari)/i // Safari & Safari Mobile
|
||||||
], [VERSION, NAME], [
|
], [VERSION, NAME], [
|
||||||
|
|
||||||
|
/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i // Google Search Appliance on iOS
|
||||||
|
], [[NAME, 'GSA'], VERSION], [
|
||||||
|
|
||||||
/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i // Safari < 3.0
|
/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i // Safari < 3.0
|
||||||
], [NAME, [VERSION, mapper.str, maps.browser.oldsafari.version]], [
|
], [NAME, [VERSION, mapper.str, maps.browser.oldsafari.version]], [
|
||||||
|
|
||||||
|
@ -958,5 +958,15 @@
|
|||||||
"version" : "6.5.8.2910",
|
"version" : "6.5.8.2910",
|
||||||
"major" : "6"
|
"major" : "6"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc" : "GSA on iOS",
|
||||||
|
"ua" : "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) GSA/30.1.161623614 Mobile/14F89 Safari/602.1",
|
||||||
|
"expect" :
|
||||||
|
{
|
||||||
|
"name" : "GSA",
|
||||||
|
"version" : "30.1.161623614",
|
||||||
|
"major" : "30"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user