mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Add contains operator
This commit is contained in:
parent
08890163af
commit
554f8ff412
|
@ -210,6 +210,8 @@ class AbuseFilter {
|
|||
return $value < $parameters;
|
||||
} elseif ($operator == 'regex') {
|
||||
return preg_match( $parameters, $value );
|
||||
} elseif ($operator == 'contains') {
|
||||
return strpos( $value, $parameters );
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue