Skip to content

Commit

Permalink
Improves detection for Meizu Mx Note devices
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Nov 5, 2017
1 parent 5e9bda3 commit 7c89301
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions Tests/fixtures/smartphone-1.yml
Expand Up @@ -699,6 +699,26 @@
model: CTAB 101L32G
os_family: Android
browser_family: Android Browser
-
user_agent: ozilla/5.0 (Linux; Android 7.1.2; MZ-M6 Note Build/N2G47H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/45.0.2454.94 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: 7.1.2
platform: ""
client:
type: browser
name: Chrome Mobile
short_name: CM
version: 45.0.2454.94
engine: Blink
engine_version: ""
device:
type: phablet
brand: M1
model: M6 Note
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.2.2; st-fr; CTAB700L Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30
os:
Expand Down
4 changes: 2 additions & 2 deletions regexes/device/mobiles.yml
Expand Up @@ -3343,13 +3343,13 @@ MEEG:

# Meizu
Meizu:
regex: '(M04[05]|M35[1356]|MX[ -]?[2345](?: Pro)?|(?:MZ-)?m[123] note|(?:MZ-)?M57[18]C|M3S)[);/ ]'
regex: '(M04[05]|M35[1356]|MX[ -]?[2345](?: Pro)?|(?:MZ-)?m[1-6] note|(?:MZ-)?M57[18]C|M3S)[);/ ]'
device: 'smartphone'
models:
- regex: '(?:MZ-)?M571C'
device: 'phablet'
model: 'M2 Note'
- regex: '(?:MZ-)?m(1|2|3) note[);/ ]'
- regex: '(?:MZ-)?m([1-6]) note[);/ ]'
device: 'phablet'
model: 'M$1 Note'
- regex: '(?:MZ-)?M578C'
Expand Down

0 comments on commit 7c89301

Please sign in to comment.