Commit 97f11bca authored by Dominik Hebeler's avatar Dominik Hebeler

Merge branch '1083-extend-the-message-for-excluding-search' into 'development'

Resolve "extend the message for excluding search"

Closes #1083

See merge request !1795
parents aa99c19f 2462ce1d
......@@ -1358,7 +1358,7 @@ class MetaGer
$words = preg_split("/\s+/si", $tmp);
$newQ = $this->q;
foreach ($words as $word) {
if (strpos($word, "-") === 0 && strlen($word) > 1) {
if(preg_match("/^-[a-zA-Z0-9]/", $word)){
$this->stopWords[] = substr($word, 1);
$newQ = str_ireplace($word, "", $newQ);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment