Skip to content

Commit

Permalink
feat(device) detect brand TCL model: C5 (5152D)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezzzhak committed Sep 27, 2020
1 parent 21b2df0 commit 0d897ad
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
20 changes: 20 additions & 0 deletions Tests/fixtures/smartphone-17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8806,4 +8806,24 @@
model: Titanium Jumbo 2
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 8.1.0; 5152D Build/O11019; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/64.0.3282.137 Mobile Safari/537.36
os:
name: Android
short_name: AND
version: 8.1.0
platform: ""
client:
type: browser
name: Chrome Webview
short_name: CV
version: 64.0.3282.137
engine: Blink
engine_version: ""
device:
type: smartphone
brand: TC
model: C5
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 @@ -12585,13 +12585,15 @@ T-Mobile:

# Tcl
TCL:
regex: 'TCL[_ -][a-z0-9]+|(?:TCL[_ -][^;/]+ Build)|(?:TCLGalaG60(?:\(9108A\))?|A502DL|T780H|5199I|7040N|5133A|5159[AJ])[);/ ]'
regex: 'TCL[_ -][a-z0-9]+|(?:TCL[_ -][^;/]+ Build)|(?:TCLGalaG60(?:\(9108A\))?|A502DL|T780H|5199I|7040N|5133A|5159[AJ]|5152D)[);/ ]'
device: 'smartphone'
models:
- regex: 'TCLGalaG60(?:\(9108A\))?[);/ ]'
model: 'Gala G60'
- regex: '5199I[);/ ]'
model: 'C9'
- regex: '5152D[);/ ]'
model: 'C5'
- regex: '5133A[);/ ]'
model: 'L5'
- regex: 'T780H[);/ ]'
Expand Down

0 comments on commit 0d897ad

Please sign in to comment.