Commit 89e0a0b1 authored by Karl Hasselbring's avatar Karl Hasselbring
Browse files

Fehler in der Erkennung von Phrasensuchen behoben

parent 5d682ec5
...@@ -1124,7 +1124,7 @@ class MetaGer ...@@ -1124,7 +1124,7 @@ class MetaGer
$p = ""; $p = "";
$tmp = $this->q; $tmp = $this->q;
// matches '[... ]"test satz"[ ...]' // matches '[... ]"test satz"[ ...]'
while (preg_match("/(^|.*?\s)\"(\S+)\"(\s.*|$)/si", $tmp, $match)) { while (preg_match("/(^|.*?\s)\"(.+)\"(\s.*|$)/si", $tmp, $match)) {
$tmp = $match[1] . $match[3]; $tmp = $match[1] . $match[3];
$this->phrases[] = $match[2]; $this->phrases[] = $match[2];
} }
......
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