diff --git a/src/bowser.js b/src/bowser.js index fa4f666..056f2d7 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -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(/^(.*)\/(.*) /), diff --git a/src/useragents.js b/src/useragents.js index de560c4..3c209ac 100644 --- a/src/useragents.js +++ b/src/useragents.js @@ -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 + } + } };