[search] allow '-' in argument name

This commit is contained in:
2016-05-17 21:29:20 +02:00
parent f56de656d3
commit 6011c720a9
2 changed files with 12 additions and 1 deletions

View File

@@ -82,7 +82,7 @@ class SearchProvider
private function extractTerms(&$subject)
{
$terms = array();
preg_match_all('/([a-z]+):([\w\-]+|\([^\(\r\n]+\))/', $subject, $matches);
preg_match_all('/([a-z\-]+):([\w\-]+|\([^\(\r\n]+\))/', $subject, $matches);
foreach ($matches[2] as $key => $match) {
//remove from search pattern