mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Merge branch 'master' of git://github.com/weo-edu/bowser into weo-edu-master
# Conflicts: # bowser.js # bowser.min.js # src/bowser.js # src/useragents.js
This commit is contained in:
commit
a763bb43e5
@ -184,6 +184,13 @@
|
||||
, version: versionIdentifier
|
||||
}
|
||||
}
|
||||
else if(/googlebot/i.test(ua)) {
|
||||
result = {
|
||||
name: 'Googlebot'
|
||||
, googlebot: t
|
||||
, version: getFirstMatch(/googlebot\/(\d+(\.\d+))/i) || versionIdentifier
|
||||
}
|
||||
}
|
||||
else {
|
||||
result = {
|
||||
name: getFirstMatch(/^(.*)\/(.*) /),
|
||||
|
@ -1028,4 +1028,11 @@ module.exports.useragents = {
|
||||
, x: true
|
||||
}
|
||||
}
|
||||
, Googlebot: {
|
||||
'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)': {
|
||||
googlebot: true
|
||||
, version: '2.1'
|
||||
, x: true
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user