Skip to content

Commit

Permalink
refs matomo-org#5764 - adds detection for Bitel B8604
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Jul 15, 2018
1 parent d8bf0cc commit 6f96521
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
22 changes: 21 additions & 1 deletion Tests/fixtures/smartphone-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,27 @@
model: A58
os_family: Android
browser_family: Android Browser
-
-
user_agent: Mozilla/5.0 (Linux; Android 4.4.3; B8604 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: 4.4.3
platform: ""
client:
type: browser
name: Chrome Mobile
short_name: CM
version: 67.0.3396.87
engine: Blink
engine_version: ""
device:
type: smartphone
brand: BT
model: B8604
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.1.2; en-us; Micromax A61 Build/JZO57K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
os:
name: Android
Expand Down
8 changes: 6 additions & 2 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1015,9 +1015,13 @@ BGH:

# Bitel
Bitel:
regex: 'Bitel[ _-]([^/;]+) Build'
regex: 'Bitel[ _-]([^/;]+) Build|B8604'
device: 'smartphone'
model: '$1'
models:
- regex: 'B8604'
model: 'B8604'
- regex: 'Bitel[ _-]([^/;]+) Build'
model: '$1'

# Blu
Blu:
Expand Down

0 comments on commit 6f96521

Please sign in to comment.