Skip to content

Commit

Permalink
feat(device) detect new brand Macoox model: MC-X7 Mini
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezzzhak committed Jun 21, 2020
1 parent 552eee4 commit 7838e95
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
1 change: 1 addition & 0 deletions Parser/Device/DeviceParserAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ abstract class DeviceParserAbstract extends ParserAbstract
'LU' => 'Lumus',
'L9' => 'Luna',
'MN' => 'M4tel',
'XM' => 'Macoox',
'MJ' => 'Majestic',
'MA' => 'Manta Multimedia',
'5M' => 'Mann',
Expand Down
22 changes: 21 additions & 1 deletion Tests/fixtures/smartphone-14.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9014,4 +9014,24 @@
brand: C5
model: TFX712G
os_family: Android
browser_family: Android Browser
browser_family: Android Browser
-
user_agent: Dalvik/2.1.0 (Linux; U; Android 5.1; MC-X7MINI Build/LMY47D)
os:
name: Android
short_name: AND
version: "5.1"
platform: ""
client:
type: browser
name: Android Browser
short_name: AN
version: ""
engine: WebKit
engine_version: ""
device:
type: smartphone
brand: XM
model: MC-X7 Mini
os_family: Android
browser_family: Android Browser
8 changes: 7 additions & 1 deletion regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14416,4 +14416,10 @@ Onix:
Mobo:
regex: '(MT7-442D)[);/ ]'
device: 'tablet'
model: '$1'
model: '$1'

# Macoox
Macoox:
regex: '(MC-X7MINI)[);/ ]'
device: 'smartphone'
model: 'MC-X7 Mini'

0 comments on commit 7838e95

Please sign in to comment.