Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
89e0a0b1
Commit
89e0a0b1
authored
Nov 26, 2018
by
Karl Hasselbring
Browse files
Fehler in der Erkennung von Phrasensuchen behoben
parent
5d682ec5
Changes
1
Show whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
89e0a0b1
...
@@ -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
];
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment