Skip to content

Commit

Permalink
Merge pull request #77 from ksdev-pl/5.2
Browse files Browse the repository at this point in the history
Add unicode modifier to regex in splitString
  • Loading branch information
jarektkaczyk committed Apr 5, 2016
2 parents 4e6d62a + f73ee1b commit 78b6c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Searchable/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function parseQuery($query, $fulltext = true)
*/
protected function splitString($query)
{
preg_match_all('/(?<=")[\w ][^"]+(?=")|(?<=\s|^)[^\s"]+(?=\s|$)/', $query, $matches);
preg_match_all('/(?<=")[\w ][^"]+(?=")|(?<=\s|^)[^\s"]+(?=\s|$)/u', $query, $matches);

return reset($matches);
}
Expand Down

0 comments on commit 78b6c38

Please sign in to comment.