mirror of
https://github.com/lancedikson/bowser
synced 2026-02-10 01:50:10 +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;
|
||||
|
||||
@ -2986,6 +2986,7 @@
|
||||
spec:
|
||||
browser:
|
||||
name: "SlackBot"
|
||||
version: "1.0"
|
||||
os: {}
|
||||
platform:
|
||||
type: "bot"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user