Skip to content

Commit

Permalink
feat(device) detect brand Positivo BGH models: Twist Metal 32GB, Twis…
Browse files Browse the repository at this point in the history
…t Max

issue matomo-org#6322
  • Loading branch information
sanchezzzhak committed Jun 26, 2020
1 parent fb1e74a commit 88db651
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
40 changes: 40 additions & 0 deletions Tests/fixtures/smartphone-14.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7294,5 +7294,45 @@
model: V7
os_family: Android
browser_family: Unknown
-
user_agent: Dalvik/2.1.0 (Linux; U; Android 8.1.0; Twist Metal 32GB Build/O11019)
os:
name: Android
short_name: AND
version: 8.1.0
platform: ""
client:
type: browser
name: Android Browser
short_name: AN
version: ""
engine: WebKit
engine_version: ""
device:
type: smartphone
brand: 3P
model: Twist Metal 32GB
os_family: Android
browser_family: Android Browser
-
user_agent: Dalvik/2.1.0 (Linux; U; Android 7.0; Twist Max Build/NRD90M)
os:
name: Android
short_name: AND
version: "7.0"
platform: ""
client:
type: browser
name: Android Browser
short_name: AN
version: ""
engine: WebKit
engine_version: ""
device:
type: smartphone
brand: 3P
model: Twist Max
os_family: Android
browser_family: Android Browser


6 changes: 5 additions & 1 deletion regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14818,11 +14818,15 @@ Multilaser:

# Positivo BGH
Positivo BGH:
regex: '(Positivo Twist S|Twist \(2018\))[);/ ]'
regex: '(Positivo Twist S|Twist (?:\(2018\)|Metal 32GB|Max))[);/ ]'
device: 'smartphone'
models:
- regex: 'Twist \(2018\)[);/ ]'
model: 'Twist (2018)'
- regex: 'Twist Metal 32GB[);/ ]'
model: 'Twist Metal 32GB'
- regex: 'Twist Max[);/ ]'
model: 'Twist Max'
- regex: 'Positivo Twist S[);/ ]'
model: 'Twist S'

Expand Down

0 comments on commit 88db651

Please sign in to comment.