Skip to content

Commit

Permalink
issue #5609 detect iridium browser
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezzzhak committed Jun 5, 2017
1 parent fca6a10 commit 6e93987
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions Parser/Client/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class Browser extends ClientParserAbstract
'IA' => 'Iceape',
'IB' => 'IBrowse',
'IC' => 'iCab',
'I1' => 'Iridium',
'ID' => 'IceDragon',
'IV' => 'Isivioo',
'IW' => 'Iceweasel',
Expand Down
9 changes: 9 additions & 0 deletions Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1655,3 +1655,12 @@
version: "30.0"
engine: Gecko
engine_version:
-
user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Iridium/41.2 Safari/537.36 Chrome/41.0.2272.118
client:
type: browser
name: Iridium
short_name: I1
version: "41.2"
engine: WebKit
engine_version: 537.36
5 changes: 5 additions & 0 deletions regexes/client/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@
engine:
default: 'Blink'

#Iridium
- regex: 'Iridium(?:/(\d+[\.\d]+))?'
name: 'Iridium'
version: '$1'

#Iceweasel
- regex: 'Iceweasel(?:/(\d+[\.\d]+))?'
name: 'Iceweasel'
Expand Down

0 comments on commit 6e93987

Please sign in to comment.