Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
no need for backslash
  • Loading branch information
kraih committed Jan 10, 2017
1 parent b4400a6 commit d5e61ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/Home.pm
Expand Up @@ -12,8 +12,8 @@ sub detect {

# Location of the application class (Windows mixes slash and backslash)
elsif ($class && (my $path = $INC{my $file = class_to_path $class})) {
$path =~ s/\\/\//g;
$path =~ s/(?:\/b?lib)?\/\Q$file\E$//;
$path =~ s!\\!/!g;
$path =~ s!(?:/b?lib)?/\Q$file\E$!!;
$detected = Mojo::File->new($path)->to_abs;
}

Expand Down

0 comments on commit d5e61ce

Please sign in to comment.