Skip to content

Commit

Permalink
added detection of CnM tablets
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Jan 21, 2014
1 parent 2c2d9f5 commit c14b688
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
Expand Up @@ -40,6 +40,7 @@ class UserAgentParserEnhanced
'BS' => 'BenQ-Siemens',
'CK' => 'Cricket',
'CL' => 'Compal',
'CN' => 'CnM',
'CT' => 'Capitel',
'CU' => 'Cube',
'DE' => 'Denver',
Expand Down
Expand Up @@ -82,7 +82,15 @@ Nokia:
- regex: 'Symbian.*\s([a-zA-Z0-9]+)$'
device: 'feature phone'
model: '$1'


# CnM
CnM:
regex: 'CnM'
device: 'tablet'
models:
- regex: 'CnM[ \-](?:Touchpad|TP)[ \-]([0-9]+)'
model: 'Touchpad $1'

# RIM/BlackBerry
RIM:
regex: 'BB10;|BlackBerry|rim[0-9]+|PlayBook'
Expand Down
6 changes: 3 additions & 3 deletions tests/PHPUnit/Fixtures/userAgentParserEnhancedFixtures.yml
Expand Up @@ -6089,9 +6089,9 @@
short_name: AN
version:
device:
type: smartphone
brand: HP
model:
type: tablet
brand: CN
model: Touchpad 9
os_family: Android
browser_family: Android Browser
-
Expand Down

0 comments on commit c14b688

Please sign in to comment.