mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Fix text merging
This commit is contained in:
@@ -241,7 +241,7 @@ class QueryVisitor implements Visit
|
|||||||
throw new \Exception('Unexpected context after non-contextualizable node');
|
throw new \Exception('Unexpected context after non-contextualizable node');
|
||||||
}
|
}
|
||||||
} elseif ($node instanceof AST\Node) {
|
} elseif ($node instanceof AST\Node) {
|
||||||
$root = new AST\AndExpression($root, $node);
|
$root = new AST\Boolean\AndOperator($root, $node);
|
||||||
} else {
|
} else {
|
||||||
throw new \Exception('Unexpected node type inside text node.');
|
throw new \Exception('Unexpected node type inside text node.');
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
foo|<text:"foo">
|
foo|<text:"foo">
|
||||||
foo (bar)|<text:"foo" context:"bar">
|
foo (bar)|<text:"foo" context:"bar">
|
||||||
|
foo "bar"|(<text:"foo "> AND <exact_text:"bar">)
|
||||||
|
"foo" bar|(<exact_text:"foo"> AND <text:" bar">)
|
||||||
# foo ("bar baz")|<text:"foo" context:"bar baz">
|
# foo ("bar baz")|<text:"foo" context:"bar baz">
|
||||||
foo bar|<text:"foo bar">
|
foo bar|<text:"foo bar">
|
||||||
foo bar (baz qux)|<text:"foo bar" context:"baz qux">
|
foo bar (baz qux)|<text:"foo bar" context:"baz qux">
|
||||||
|
Can't render this file because it contains an unexpected character in line 1 and column 11.
|
Reference in New Issue
Block a user