57 foreach ( $regexes as $regex ) {
59 if ( preg_match( $regex, $text,
$matches ) ) {
Service to check if text (either content or a summary) qualifies as spam.
checkSummary(string $summary)
Check whether summary text is considered spam.
checkContent(string $text)
Check whether content text is considered spam.
static checkInternal(string $text, array $regexes)
__construct( $spamRegex, $summaryRegex)