Skip to content

Commit

Permalink
fix direction detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Jul 28, 2024
1 parent 78e461d commit 2f8d325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function __invoke(ServerRequest $request, Variables $variables): Response
$this->storage,
$vendor,
$package,
match (Str::of($request->url()->path()->toString())->endsWith('dependencies')) {
match (Str::of($request->url()->path()->toString())->contains('dependencies')) {
true => Domain\Direction::dependencies,
false => Domain\Direction::dependents,
},
Expand Down

0 comments on commit 2f8d325

Please sign in to comment.