Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Macsch15 committed Aug 23, 2015
1 parent 3d7ca62 commit efa8559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Detector/CrawlerDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function isCrawler($user_agent)
$list = array_merge(require __DIR__ . '/Fixtures/CrawlersList.php');

foreach ($list as $crawler_name => $crawler_regex) {
if (preg_match('/(?:^|[^A-Z0-9\_\-])(?:' . str_replace('/', '\/', $crawler_regex) . ')/i', $user_agent, $matches)) {
if (preg_match('/(?:^|[^A-Z0-9\_\-])(?:' . str_replace('/', '\/', $crawler_regex) . ')/i', $user_agent)) {
$this->name = trim($crawler_name);

return true;
Expand Down

0 comments on commit efa8559

Please sign in to comment.