Skip to content

Commit 66c9f2b

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/MetaCPAN/Query/File.pm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,10 @@ sub _autocomplete {
452452

453453
return {
454454
took => $sugg_res->{took} + $res->{took} + $fav_res->{took},
455-
suggestions => \@sorted,
455+
suggestions => [
456+
$exact,
457+
@sorted,
458+
],
456459
};
457460
}
458461

0 commit comments

Comments
 (0)