1
0
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:
copilot-swe-agent[bot] 2025-11-22 22:08:54 +00:00
parent 09c482046c
commit 26975d7bc7

View File

@ -324,7 +324,7 @@ const browsersList = [
const browser = {
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) {
browser.version = version;