Skip to content

Commit bf7f766

Browse files
authored
Merge pull request #1368 from metacpan/haarg/fix-autocomplete-exact-match
fix autocomplete not including exact matches
2 parents c50979d + c198e82 commit bf7f766

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)