mirror of
https://github.com/lancedikson/bowser
synced 2026-02-09 17:40:09 +00:00
Fix test
This commit is contained in:
parent
0ce467a36c
commit
7a652596e7
@ -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;
|
||||
|
||||
@ -2982,10 +2982,11 @@
|
||||
vendor: "Slack"
|
||||
engine: {}
|
||||
-
|
||||
ua: "Slackbot 1.0(+https://api.slack.com/robots)"
|
||||
ua: "Slackbot 1.0 (+https://api.slack.com/robots)"
|
||||
spec:
|
||||
browser:
|
||||
name: "SlackBot"
|
||||
version: "1.0"
|
||||
os: {}
|
||||
platform:
|
||||
type: "bot"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user