Skip to content

Commit

Permalink
allow wildcard within phrase
Browse files Browse the repository at this point in the history
  • Loading branch information
jarektkaczyk committed Oct 29, 2015
1 parent 03631d1 commit 3a65d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Searchable/Parser.php
Expand Up @@ -72,7 +72,7 @@ protected function addMissingWeights(array $columns)
*/
public function stripWildcards($word)
{
return str_replace($this->wildcard, '', $word);
return str_replace($this->wildcard, '%', trim($word, $this->wildcard));
}

/**
Expand Down

0 comments on commit 3a65d49

Please sign in to comment.