We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ab95b3e + fba3f3d commit df534a2Copy full SHA for df534a2
Slim/Plugin/FullTextSearch/Plugin.pm
@@ -387,7 +387,7 @@ sub parseSearchTerm {
387
push @quoted, '"' . $quoted . '"';
388
}
389
390
- my @tokens = grep /\w+/, split(/[\s[:punct:]]/, $search);
+ my @tokens = grep /\-?\w/, split(/(?[ ( [:punct:] - [-] ) + \s ])|\b\-/, $search);
391
my $noOfTokens = scalar(@tokens) + scalar(@quoted);
392
393
my @tokens = map {
0 commit comments