Skip to content

Commit dbeb59e

Browse files
committed
fixes #5779 - improve detection of Android
1 parent a47313f commit dbeb59e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Tests/Parser/fixtures/oss.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,13 @@
455455
short_name: AND
456456
version: "2.2.2"
457457
platform:
458+
-
459+
user_agent: Mozilla/5.0 (Linux; Android 9; Pixel XL Build/PPR1.180610.009) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.91 Mobile Safari/537.36
460+
os:
461+
name: Android
462+
short_name: AND
463+
version: "9"
464+
platform: ""
458465
-
459466
user_agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 8.12; MSIEMobile 6.0) acer_F900
460467
os:

regexes/oss.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
##########
9999
# Android
100100
##########
101-
- regex: '(?:(?:Orca-)?Android|Adr)[ /](?:[a-z]+ )?(\d+[\.\d]+)'
101+
- regex: '(?:(?:Orca-)?Android|Adr)[ /](?:[a-z]+ )?(\d+[\.\d]*)'
102102
name: 'Android'
103103
version: '$1'
104104

0 commit comments

Comments
 (0)