mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Updated the check for generic browsers
This commit is contained in:
parent
f1bdd50116
commit
3bfb24c8cb
@ -590,9 +590,10 @@ const browsersList = [
|
||||
{
|
||||
test: [/.*/i],
|
||||
describe(ua) {
|
||||
const regexp = ua.search("\\(") == -1 ? /^(.*)\/(.*) / : /^(.*)\/(.*)\((.*) /
|
||||
return {
|
||||
name: Utils.getFirstMatch(/^(.*)\/(.*)\((.*) /, ua),
|
||||
version: Utils.getSecondMatch(/^(.*)\/(.*)\((.*) /, ua),
|
||||
name: Utils.getFirstMatch(regexp, ua),
|
||||
version: Utils.getSecondMatch(regexp, ua),
|
||||
};
|
||||
},
|
||||
},
|
||||
|
@ -2216,6 +2216,15 @@
|
||||
engine:
|
||||
name: "Blink"
|
||||
Generic:
|
||||
-
|
||||
ua: "Generic/2.15 libww"
|
||||
spec:
|
||||
browser:
|
||||
name: "Generic"
|
||||
version: "2.15"
|
||||
os: {}
|
||||
platform: {}
|
||||
engine: {}
|
||||
-
|
||||
ua: "Generic/2.15 (Macintosh; Intel Mac OS X 10_6_8)"
|
||||
spec:
|
||||
|
Loading…
Reference in New Issue
Block a user