mirror of
https://github.com/lancedikson/bowser
synced 2026-09-24 04:55:13 +00:00
feat: Add Line sipder detection (#600)
Co-authored-by: Jam <jam.hsu@lativ.com.tw>
This commit is contained in:
@@ -266,6 +266,23 @@ const browsersList = [
|
||||
},
|
||||
},
|
||||
|
||||
/* Linespider */
|
||||
{
|
||||
test: [/linespider/i],
|
||||
describe(ua) {
|
||||
const browser = {
|
||||
name: 'Linespider',
|
||||
};
|
||||
const version = Utils.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
|
||||
|
||||
if (version) {
|
||||
browser.version = version;
|
||||
}
|
||||
|
||||
return browser;
|
||||
},
|
||||
},
|
||||
|
||||
/* AmazonBot */
|
||||
{
|
||||
test: [/amazonbot/i],
|
||||
|
||||
Reference in New Issue
Block a user