Skip to content

Commit

Permalink
feat(device) detect brand Meizu: M5c
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezzzhak committed May 24, 2022
1 parent f711306 commit 4992bbc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Tests/fixtures/smartphone-30.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2641,3 +2641,21 @@
model: StarAddict 6
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 6.0; M5c Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 YaBrowser/17.11.0.530.00 Mobile Safari/537.36
os:
name: Android
version: "6.0"
platform: ""
client:
type: browser
name: Yandex Browser
version: 17.11.0.530.00
engine: Blink
engine_version: 62.0.3202.94
device:
type: smartphone
brand: Meizu
model: M5c
os_family: Android
browser_family: Unknown
4 changes: 3 additions & 1 deletion regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28734,7 +28734,7 @@ Shivaki:

# Meizu
Meizu:
regex: 'Meizu|MZ-(?!Fast)[A-Z]|(?<!POCO )(M04[05]|MZ-16th(?: Plus)?|MZ-16[st]|M7[12]1C|M35[1356]|M612C|M578CA|M181[36]|M1822|M681C|M6T|MX[ -]?[2345](?: Pro)?|(?:MZ-)?m[1-6] note|M621C|M1852|M57[18]C|M3[ESX]|M3 Max|M031|m1 metal|M1 E|(?<!Nubia |STELLAR )M2|M2 E|M5s Build|PRO [567]|PRO 7-[HS]| 15 Lite| 16th|MZ-15 (?:Lite|Plus)|15 Plus|MZ-16 X| 16 X| 16T|MX6|16s Pro)(?:[);/ ]|$)'
regex: 'Meizu|MZ-(?!Fast)[A-Z]|(?<!POCO )(M04[05]|MZ-16th(?: Plus)?|MZ-16[st]|M7[12]1C|M35[1356]|M612C|M578CA|M181[36]|M1822|M681C|M6T|MX[ -]?[2345](?: Pro)?|(?:MZ-)?m[1-6] note|M621C|M1852|M57[18]C|M3[ESX]|M3 Max|M031|m1 metal|M1 E|(?<!Nubia |STELLAR )M2|M2 E|M5s Build|PRO [567]|PRO 7-[HS]| 15 Lite| 16th|MZ-15 (?:Lite|Plus)|15 Plus|MZ-16 X| 16 X| 16T|MX6| M5c|16s Pro)(?:[);/ ]|$)'
device: 'smartphone'
models:
- regex: '(?:MZ-)?M571C'
Expand Down Expand Up @@ -28768,6 +28768,8 @@ Meizu:
model: 'M3 Max'
- regex: 'M5S|M612C'
model: 'M5S'
- regex: '(?:MZ-)?M5c(?:[);/ ]|$)'
model: 'M5c'
- regex: '(M04[05]|MX[ -]?2)(?:[);/ ]|$)'
model: 'MX2'
- regex: '(M35[1356]|MX[ -]?3)(?:[);/ ]|$)'
Expand Down

0 comments on commit 4992bbc

Please sign in to comment.