1
0
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:
Denis Demchenko 2016-04-14 23:25:31 +03:00
commit a763bb43e5
2 changed files with 14 additions and 0 deletions

View File

@ -184,6 +184,13 @@
, version: versionIdentifier , version: versionIdentifier
} }
} }
else if(/googlebot/i.test(ua)) {
result = {
name: 'Googlebot'
, googlebot: t
, version: getFirstMatch(/googlebot\/(\d+(\.\d+))/i) || versionIdentifier
}
}
else { else {
result = { result = {
name: getFirstMatch(/^(.*)\/(.*) /), name: getFirstMatch(/^(.*)\/(.*) /),

View File

@ -1028,4 +1028,11 @@ module.exports.useragents = {
, x: true , x: true
} }
} }
, Googlebot: {
'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)': {
googlebot: true
, version: '2.1'
, x: true
}
}
}; };