Commit 2462ce1d authored by Dominik Hebeler's avatar Dominik Hebeler

limited allowed range of characters for stopwords

parent b46708cb
......@@ -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