Skip to content
This repository has been archived by the owner on Nov 30, 2017. It is now read-only.

Commit

Permalink
Built WhichBrowser from commit cc04aea on WhichBrowser/WhichBrowser o…
Browse files Browse the repository at this point in the history
…n branch dev
  • Loading branch information
NielsLeenheer committed Nov 9, 2015
1 parent 4f2c0db commit 05c6ffa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libraries/whichbrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -5550,8 +5550,13 @@ function analyseUserAgent($ua) {
}
}

if (preg_match('/midori$/u', $ua)) {
if (preg_match('/midori(?:\/[0-9.]*)?$/u', $ua)) {
$this->browser->name = 'Midori';
$this->device->type = TYPE_DESKTOP;

if (preg_match('/midori\/([0-9.]*)$/u', $ua, $match)) {
$this->browser->version = new Version(array('value' => $match[1]));
}
}


Expand Down Expand Up @@ -5755,7 +5760,7 @@ function analyseUserAgent($ua) {
array('name' => 'Galeon', 'regexp' => '/Galeon\/([0-9.]*)/u', 'details' => 3),
array('name' => 'Helium', 'regexp' => '/HeliumMobileBrowser\/([0-9.]*)/u'),
array('name' => 'Hive Explorer', 'regexp' => '/HiveE/u'),
array('name' => 'IBrowse', 'regexp' => '/IBrowse\/([0-9.]*)/u', 'type' => TYPE_DESKTOP),
array('name' => 'IBrowse', 'regexp' => '/IBrowse[\/ ]([0-9.]*)/u', 'type' => TYPE_DESKTOP),
array('name' => 'iCab', 'regexp' => '/iCab\/([0-9.]*)/u'),
array('name' => 'Iceape', 'regexp' => '/Iceape\/([0-9.]*)/u'),
array('name' => 'IceCat', 'regexp' => '/IceCat[ \/]([0-9.]*)/u', 'type' => TYPE_DESKTOP),
Expand Down

0 comments on commit 05c6ffa

Please sign in to comment.