Skip to content

Commit c198e82

Browse files
committed
fix autocomplete not including exact matches
This was broken by a29eff9.
1 parent c50979d commit c198e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/MetaCPAN/Query/File.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ sub _autocomplete {
452452

453453
return {
454454
took => $sugg_res->{took} + $res->{took} + $fav_res->{took},
455-
suggestions => \@sorted,
455+
suggestions => [ ( $exact ? $exact : () ), @sorted ],
456456
};
457457
}
458458

0 commit comments

Comments
 (0)