Closed amochohan closed 8 years ago
When I add the following user agent to the devices.txt test file:
devices.txt
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
The tests fail. However, when I add Googlebot to the Crawlers.php file, PHPUnit fails because there is a regex collision.
Googlebot
Crawlers.php
Hi,
Bot user agents should be added to crawlers.txt not devices.txt
crawlers.txt
When you add Googlebot to the Crawlers.php array, the tests will fail because Googlebot is already detected by our generic regex which you can see here
Thanks
When I add the following user agent to the
devices.txt
test file:Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
The tests fail. However, when I add
Googlebot
to theCrawlers.php
file, PHPUnit fails because there is a regex collision.