Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmoise committed Apr 23, 2015
1 parent 58cef7f commit 745a2d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/HTTP/BrowserDetect.pm
Expand Up @@ -958,8 +958,8 @@ sub _init_robots {
$self->{robot_fragment} = "search";
$robot_tests->{robot} = 'unknown';
}
elsif ( $self->{user_agent} =~ /([\w \/\.\-]+)[ \;\(\)]*\+http\:/i )
{
elsif ( $self->{user_agent} =~ /([\w \/\.\-]+)[ \;\(\)]*\+http\:/i ) {

# Something followed by +http
$self->{robot_string} = $1;
$self->{robot_string} =~ s/^ *(.+?)[ \;\(\)]*$/$1/;
Expand Down

0 comments on commit 745a2d2

Please sign in to comment.