File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 16
16
class FulltextFilter implements FilterApplierInterface
17
17
{
18
18
/**
19
- * Patterns using in preg_replace
19
+ * Patterns using for escaping special characters in escapeAgainstValue method
20
20
*/
21
- private $ patterns = [
21
+ private $ escapePatterns = [
22
22
'/[@\.]/ ' => '\_ ' ,
23
23
'/([+\-><\(\)~*]+)/ ' => ' ' ,
24
24
];
@@ -78,7 +78,7 @@ function ($column) use ($alias) {
78
78
*/
79
79
private function escapeAgainstValue (string $ value ): string
80
80
{
81
- return preg_replace (array_keys ($ this ->patterns ), array_values ($ this ->patterns ), $ value );
81
+ return preg_replace (array_keys ($ this ->escapePatterns ), array_values ($ this ->escapePatterns ), $ value );
82
82
}
83
83
84
84
/**
You can’t perform that action at this time.
0 commit comments