1
0
mirror of https://github.com/lancedikson/bowser synced 2026-02-10 01:50:10 +00:00
This commit is contained in:
Jam 2026-01-31 08:37:22 +08:00
parent 0ce467a36c
commit 7a652596e7
2 changed files with 3 additions and 2 deletions

View File

@ -368,7 +368,7 @@ const browsersList = [
const browser = {
name: 'SlackBot',
};
const version = Utils.getFirstMatch(/slackbot\/(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(/slack-imgproxy\s+(\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
const version = Utils.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
if (version) {
browser.version = version;

View File

@ -2986,6 +2986,7 @@
spec:
browser:
name: "SlackBot"
version: "1.0"
os: {}
platform:
type: "bot"