Skip to content

Commit

Permalink
improved detection for Intex devices
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Nov 25, 2014
1 parent 8024e67 commit 8a239e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions Tests/fixtures/smartphone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7860,25 +7860,25 @@
os_family: GNU/Linux
browser_family: Opera
-
user_agent: UCWEB/2.0 (Linux; U; Adr 2.3.5; en-US; INTEX_CLOUD_X1) U2/1.0.0 UCBrowser/8.7.0.315 U2/1.0.0 Mobile
user_agent: Aqua Y2/V1 Linux/3.4.5 Android/4.2.2 Release/03.26.2013 Browser/AppleWebKit534.30 Mobile Safari/534.30 MBBMS/2.2;
os:
name: Android
short_name: AND
version: 2.3.5
version: 4.2.2
client:
type: browser
name: UC Browser
short_name: UC
version: 8.7.0.315
engine:
name: Android Browser
short_name: AN
version:
engine: WebKit
device:
type: smartphone
brand: IX
model: CLOUD X1
model: Aqua Y2
os_family: Android
browser_family: Unknown
browser_family: Android Browser
-
user_agent: UCWEB/2.0 (Linux; U; Adr 2.3.5; en-US; INTEX_CLOUD_X1) U2/1.0.0 UCBrowser/8.7.0.337 U2/1.0.0 Mobile
user_agent: UCWEB/2.0 (Linux; U; Adr 2.3.5; en-US; INTEX_CLOUD_X1) U2/1.0.0 UCBrowser/8.7.0.315 U2/1.0.0 Mobile
os:
name: Android
short_name: AND
Expand All @@ -7887,7 +7887,7 @@
type: browser
name: UC Browser
short_name: UC
version: 8.7.0.337
version: 8.7.0.315
engine:
device:
type: smartphone
Expand Down
4 changes: 2 additions & 2 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -871,12 +871,12 @@ INQ:

# Intex
Intex:
regex: 'Intex|(Aqua|Cloud)[ _\.][^/;]+(?:[ _]Build|\))'
regex: 'Intex|(Aqua|Cloud)[ _\.]([^/;\)]+)(?:[ _]Build|(?<!Build)/|\))'
device: 'smartphone'
models:
- regex: 'Intex[ _]([^/;]*)[ _]Build'
model: '$1'
- regex: '(Aqua|Cloud)[ _\.]([^/;]+)(?:[ _]Build|\))'
- regex: '(Aqua|Cloud)[ _\.]([^/;\)]+)(?:[ _]Build|(?<!Build)/|\))'
model: '$1 $2'
- regex: 'Intex[ _]([a-z0-9_+-]+)'
model: '$1'
Expand Down

0 comments on commit 8a239e8

Please sign in to comment.