mirror of
https://github.com/lancedikson/bowser
synced 2026-03-02 03:40:27 +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:
@@ -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(/^(.*)\/(.*) /),
|
||||
|
||||
Reference in New Issue
Block a user