mirror of
https://github.com/lancedikson/bowser
synced 2025-12-05 06:02:14 +00:00
claudebot
This commit is contained in:
parent
8e01721a36
commit
0f59e149f4
@ -81,12 +81,12 @@ const browsersList = [
|
|||||||
|
|
||||||
/* ClaudeBot */
|
/* ClaudeBot */
|
||||||
{
|
{
|
||||||
test: [/claudebot/i, /claude-web/i],
|
test: [/claudebot/i, /claude-web/i, /claude-user/i, /claude-searchbot/i],
|
||||||
describe(ua) {
|
describe(ua) {
|
||||||
const browser = {
|
const browser = {
|
||||||
name: 'ClaudeBot',
|
name: 'ClaudeBot',
|
||||||
};
|
};
|
||||||
const version = Utils.getFirstMatch(/(?:claudebot|claude-web)\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
|
const version = Utils.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
|
||||||
|
|
||||||
if (version) {
|
if (version) {
|
||||||
browser.version = version;
|
browser.version = version;
|
||||||
@ -103,7 +103,7 @@ const browsersList = [
|
|||||||
const browser = {
|
const browser = {
|
||||||
name: 'Omgilibot',
|
name: 'Omgilibot',
|
||||||
};
|
};
|
||||||
const version = Utils.getFirstMatch(/omgilibot\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
|
const version = Utils.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
|
||||||
|
|
||||||
if (version) {
|
if (version) {
|
||||||
browser.version = version;
|
browser.version = version;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user