Skip to content

Commit

Permalink
Add Edge version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
jwpage committed Mar 2, 2016
1 parent 965ee41 commit 2f95616
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Agent.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Agent extends Mobile_Detect {
'Netscape' => 'Netscape/[VER]',
'Mozilla' => 'rv:[VER]',
'IE' => array('IEMobile/[VER];', 'IEMobile [VER]', 'MSIE [VER];', 'rv:[VER]'),
'Edge' => 'Edge/[VER]',
);

/**
Expand Down
1 change: 1 addition & 0 deletions tests/AgentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class AgentTest extends PHPUnit_Framework_TestCase {
'Mozilla/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/20110201' => '2.2',
'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14' => '12.14',
'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; de) Opera 11.51' => '11.51',
'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',
);

private $operatingSystemVersions = array(
Expand Down

0 comments on commit 2f95616

Please sign in to comment.