Skip to content

Commit

Permalink
Adds detection for Teracube and devices
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Jul 13, 2022
1 parent 8c1b9fb commit 06fc774
Show file tree
Hide file tree
Showing 3 changed files with 45 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 @@ -1196,6 +1196,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'TE' => 'Telit',
'65' => 'Telia',
'PW' => 'Telpo',
'TER' => 'Teracube',
'TD' => 'Tesco',
'TA' => 'Tesla',
'9T' => 'Tetratab',
Expand Down
36 changes: 36 additions & 0 deletions Tests/fixtures/smartphone-7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9207,3 +9207,39 @@
model: JP5s
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; Android 11; Teracube 2e) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.88 Mobile Safari/537.36
os:
name: Android
version: "11"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 99.0.4844.88
engine: Blink
engine_version: 99.0.4844.88
device:
type: smartphone
brand: Teracube
model: 2e
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 9; Teracube One) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.73 Mobile Safari/537.36
os:
name: Android
version: "9"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 99.0.4844.73
engine: Blink
engine_version: 99.0.4844.73
device:
type: smartphone
brand: Teracube
model: One
os_family: Android
browser_family: Chrome
8 changes: 8 additions & 0 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20347,6 +20347,14 @@ Techwood:
device: 'tv'
model: ''

# Teracube (https://myteracube.com/)
Teracube:
regex: 'Teracube'
device: 'smartphone'
models:
- regex: 'Teracube (2e|One)(?:[);/ ]|$)'
model: '$1'

# Tesco
Tesco:
regex: 'Hudl (?:[^/;]+)(?: Build|[;)])|W032i-C3(?:[);/ ]|$)'
Expand Down

0 comments on commit 06fc774

Please sign in to comment.