1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

feat: Add Line sipder detection (#600)

Co-authored-by: Jam <jam.hsu@lativ.com.tw>
This commit is contained in:
Jam Hsu
2026-02-07 05:08:55 +08:00
committed by GitHub
parent aaa67db25e
commit c09ff24ae1
4 changed files with 54 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ export const BROWSER_ALIASES_MAP = {
InternetArchiveCrawler: 'internetarchivecrawler',
'K-Meleon': 'k_meleon',
LibreWolf: 'librewolf',
Linespider: 'linespider',
Maxthon: 'maxthon',
'Meta-ExternalAds': 'meta_externalads',
'Meta-ExternalAgent': 'meta_externalagent',
@@ -98,6 +99,7 @@ export const BROWSER_MAP = {
internetarchivecrawler: 'InternetArchiveCrawler',
k_meleon: 'K-Meleon',
librewolf: 'LibreWolf',
linespider: 'Linespider',
maxthon: 'Maxthon',
meta_externalads: 'Meta-ExternalAds',
meta_externalagent: 'Meta-ExternalAgent',

View File

@@ -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],

View File

@@ -18,6 +18,17 @@ export default [
},
},
/* LineSpider */
{
test: [/linespider/i],
describe() {
return {
type: PLATFORMS_MAP.bot,
vendor: 'Line',
};
},
},
/* AmazonBot */
{
test: [/amazonbot/i],