Skip to content

Commit

Permalink
feat: detect device new brand Lemco: FBX-3566, FBX-3566W (#7510)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezzzhak authored Nov 13, 2023
1 parent b706328 commit 759cdbd
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'LEG' => 'Legend',
'L4' => 'Lemhoov',
'W9' => 'LEMFO',
'LEM' => 'Lemco',
'LN' => 'Lenco',
'LE' => 'Lenovo',
'LT' => 'Leotec',
Expand Down
36 changes: 36 additions & 0 deletions Tests/fixtures/peripheral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1234,3 +1234,39 @@
model: Smart LED 3D Projector
os_family: Android
browser_family: Opera
-
user_agent: Mozilla/5.0 (Lemco FBX-3566; Linux aarch64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.15.2 Chrome/87.0.4280.144 Safari/537.36
os:
name: GNU/Linux
version: ""
platform: ARM
client:
type: browser
name: QtWebEngine
version: 5.15.2
engine: WebKit
engine_version: "537.36"
device:
type: peripheral
brand: Lemco
model: FBX-3566
os_family: GNU/Linux
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Lemco FBX-3566W; Linux aarch64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.15.2 Chrome/87.0.4280.144 Safari/537.36
os:
name: GNU/Linux
version: ""
platform: ARM
client:
type: browser
name: QtWebEngine
version: 5.15.2
engine: WebKit
engine_version: "537.36"
device:
type: peripheral
brand: Lemco
model: FBX-3566W
os_family: GNU/Linux
browser_family: Chrome
6 changes: 6 additions & 0 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13482,6 +13482,12 @@ Lephone:
- regex: 'lephone(?:[ _])?([^/);]*)(?: Build|[);])'
model: '$1'

# Lemco
Lemco:
regex: 'Lemco (FBX-3566W?)(?:[);/ ]|$)'
device: 'peripheral'
model: '$1'

# lenco
Lenco:
regex: 'Lenco (?:[^/);]*)(?: Build|[);])|(?:TDV900)(?:[);/ ]|$)'
Expand Down

0 comments on commit 759cdbd

Please sign in to comment.