Skip to content

Commit

Permalink
Merge pull request jenssegers#54 from vitalybaev/YandexBots
Browse files Browse the repository at this point in the history
Added Yandex Bots
  • Loading branch information
jenssegers authored Aug 16, 2016
2 parents d6076ec + 74e7f3b commit b8b2137
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 @@ -86,6 +86,7 @@ class Agent extends Mobile_Detect {
'Lycos' => 'lycos',
'Facebook' => 'facebookexternalhit',
'Twitter' => 'Twitterbot',
'Yandex' => 'Yandex',
);

/**
Expand Down
1 change: 1 addition & 0 deletions tests/AgentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class AgentTest extends PHPUnit_Framework_TestCase {
'facebookexternalhit/1.1 (+http(s)://www.facebook.com/externalhit_uatext.php)' => 'Facebook',
'Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)' => 'Bing',
'Twitterbot/1.0' => 'Twitter',
'Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)' => 'Yandex',
);

private $mobileDevices = array(
Expand Down

0 comments on commit b8b2137

Please sign in to comment.