From 4ee40f32c1b75f39b6522ec1104738ab9455c2ca Mon Sep 17 00:00:00 2001 From: Karl Hasselbring <karl@suma-ev.de> Date: Mon, 26 Nov 2018 11:18:51 +0100 Subject: [PATCH] Fehler in der Erkennung von Phrasensuchen behoben --- app/MetaGer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/MetaGer.php b/app/MetaGer.php index e8082439d..c9fdb9b49 100644 --- a/app/MetaGer.php +++ b/app/MetaGer.php @@ -1124,7 +1124,7 @@ class MetaGer $p = ""; $tmp = $this->q; // 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]; $this->phrases[] = $match[2]; } -- GitLab