mirror of
https://github.com/perlbot/perlbuut
synced 2025-06-07 16:45:40 -04:00
Eliminate undef in the suggestionsw
This commit is contained in:
parent
35d984ed50
commit
519e7994c2
1 changed files with 1 additions and 1 deletions
|
@ -660,7 +660,7 @@ sub _metaphone_matches {
|
||||||
|
|
||||||
my @sorted = map {$_->[0]} sort {$a->[1] <=> $b->[1]} map {[$_->[1], distance($subject, $_->[1])]} grep {$_->[2] =~ /\S/} @$rows ;
|
my @sorted = map {$_->[0]} sort {$a->[1] <=> $b->[1]} map {[$_->[1], distance($subject, $_->[1])]} grep {$_->[2] =~ /\S/} @$rows ;
|
||||||
|
|
||||||
return [@sorted[0..9]];
|
return [grep {$_} @sorted[0..9]];
|
||||||
}
|
}
|
||||||
|
|
||||||
no warnings 'void';
|
no warnings 'void';
|
||||||
|
|
Loading…
Add table
Reference in a new issue