Skip to content

Commit

Permalink
feat(device) detect brand Vsun model: Mars Touch
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezzzhak committed Nov 26, 2020
1 parent 0f36091 commit f146626
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions Tests/fixtures/smartphone-18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7971,3 +7971,22 @@
model: Pocket 2
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 7.0; MARS TOUCH) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.96 Mobile Safari/537.36
os:
name: Android
version: "7.0"
platform: ""
client:
type: browser
name: Chrome Mobile
version: 78.0.3904.96
engine: Blink
engine_version: ""
device:
type: smartphone
brand: Vsun
model: Mars Touch
os_family: Android
browser_family: Chrome

4 changes: 3 additions & 1 deletion regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16680,11 +16680,13 @@ National:

# Vsun
Vsun:
regex: 'VSUN (ILLUSION|RACE|V9)(?:[);/ ]|$)'
regex: '(?:VSUN (?:ILLUSION|RACE|V9)|MARS TOUCH)(?:[);/ ]|$)'
device: 'smartphone'
models:
- regex: 'ILLUSION(?:[);/ ]|$)'
model: 'Illusion'
- regex: 'MARS TOUCH(?:[);/ ]|$)'
model: 'Mars Touch'
- regex: 'RACE(?:[);/ ]|$)'
model: 'Race'
- regex: '(V9)(?:[);/ ]|$)'
Expand Down

0 comments on commit f146626

Please sign in to comment.