FilterMatchNot: Do not re-invent the parents implementation of matches()

refs #5600
This commit is contained in:
Johannes Meyer 2015-09-23 13:01:08 +02:00
parent 939188be94
commit e4e560ab1a
1 changed files with 1 additions and 10 deletions

View File

@ -7,15 +7,6 @@ class FilterMatchNot extends FilterExpression
{
public function matches($row)
{
$expression = (string) $this->expression;
if (strpos($expression, '*') === false) {
return (string) $row->{$this->column} !== $expression;
} else {
$parts = array();
foreach (preg_split('/\*/', $expression) as $part) {
$parts[] = preg_quote($part);
}
return ! preg_match('/^' . implode('.*', $parts) . '$/', $row->{$this->column});
}
return !parent::matches($row);
}
}