1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Merge branch 'weo-edu-master' into develop

close #74
This commit is contained in:
Denis Demchenko 2016-04-14 23:30:50 +03:00
commit eb5502ffc4
2 changed files with 14 additions and 0 deletions

View File

@ -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(/^(.*)\/(.*) /),

View File

@ -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
}
}
};