Skip to content

Commit 5713303

Browse files
committed
Merge pull request jenssegers#49 from jwpage/master
Add Edge version detection
2 parents 965ee41 + 2f95616 commit 5713303

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Agent.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class Agent extends Mobile_Detect {
6666
'Netscape' => 'Netscape/[VER]',
6767
'Mozilla' => 'rv:[VER]',
6868
'IE' => array('IEMobile/[VER];', 'IEMobile [VER]', 'MSIE [VER];', 'rv:[VER]'),
69+
'Edge' => 'Edge/[VER]',
6970
);
7071

7172
/**

tests/AgentTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class AgentTest extends PHPUnit_Framework_TestCase {
5757
'Mozilla/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/20110201' => '2.2',
5858
'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14' => '12.14',
5959
'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; de) Opera 11.51' => '11.51',
60+
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12' => '12',
6061
);
6162

6263
private $operatingSystemVersions = array(

0 commit comments

Comments
 (0)