mirror of
https://github.com/lancedikson/bowser
synced 2025-12-04 21:52:14 +00:00
Make AdIdxBot regex pattern consistent with other Bing bots
Co-authored-by: naorpeled <6171622+naorpeled@users.noreply.github.com>
This commit is contained in:
parent
09c482046c
commit
26975d7bc7
@ -324,7 +324,7 @@ const browsersList = [
|
|||||||
const browser = {
|
const browser = {
|
||||||
name: 'AdIdxBot',
|
name: 'AdIdxBot',
|
||||||
};
|
};
|
||||||
const version = Utils.getFirstMatch(/adidxbot\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
|
const version = Utils.getFirstMatch(/adidxbot\/(\d+(\.\d+)*[a-z]*)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
|
||||||
|
|
||||||
if (version) {
|
if (version) {
|
||||||
browser.version = version;
|
browser.version = version;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user