Skip to content

Commit

Permalink
Adds detection for Digit4G brand and devices
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Jul 13, 2022
1 parent fbc7e04 commit 4aaef6b
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 @@ -334,6 +334,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'D3' => 'Digicel',
'DH' => 'Digihome',
'DD' => 'Digiland',
'DIG' => 'Digit4G',
'DIC' => 'DIGICOM',
'Q0' => 'DIGIFORS',
'DQ' => 'DISH',
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 @@ -9135,3 +9135,39 @@
model: HEYou 70
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 8.1.0; Digit4G Energy Build/O11019; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36 OPR/62.5.2254.61243
os:
name: Android
version: 8.1.0
platform: ""
client:
type: browser
name: Opera Mobile
version: 62.5.2254.61243
engine: Blink
engine_version: 61.0.3163.98
device:
type: smartphone
brand: Digit4G
model: Energy
os_family: Android
browser_family: Opera
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.4.4; Digit4G-Pro Build/KTU84P) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/12.12.9.1226 U3/0.8.0 Mobile Safari/534.30
os:
name: Android
version: 4.4.4
platform: ""
client:
type: browser
name: UC Browser
version: 12.12.9.1226
engine: WebKit
engine_version: "534.30"
device:
type: smartphone
brand: Digit4G
model: Pro
os_family: Android
browser_family: Unknown
8 changes: 8 additions & 0 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5894,6 +5894,14 @@ Digiland:
- regex: '(Compumax Blue)' # Compumax
model: '$1'

# Digit4G (https://digit4g.com/p)
Digit4G:
regex: 'Digit4G'
device: 'smartphone'
models:
- regex: 'Digit4G[ -](Energy|Pro)'
model: '$1'

# Compumax or COMPUMAX COMPUTER S.A.S (www.compumax.com.co)
COMPUMAX:
regex: 'BlueS10(?:[);/ ]|$)'
Expand Down

0 comments on commit 4aaef6b

Please sign in to comment.