Skip to content

Commit

Permalink
Prefix match fix (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
klinec authored and ivanbarlog committed May 9, 2018
1 parent 0b39745 commit 3d457e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Match/Voter/PrefixMatchVoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public function matches(string $url, MatchInterface $match): bool
return false;
}

return 0 === strpos($match->getValue(), $url);
return 0 === strpos($url, $match->getValue());
}
}

0 comments on commit 3d457e1

Please sign in to comment.