Skip to content
Snippets Groups Projects
Commit fe1de194 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch '848-phrasensuche-geht-nicht' into 'development'

Resolve "Phrasensuche geht nicht"

Closes #848

See merge request !1357
parents 5d682ec5 89e0a0b1
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
...@@ -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];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment