You are here

protected function KeywordFilter::matchRegex in Tamper 8

Determines whether we get a keyword filter match using regex.

File

src/Plugin/Tamper/KeywordFilter.php, line 245

Class

KeywordFilter
Plugin implementation for filtering based on a list of words/phrases.

Namespace

Drupal\tamper\Plugin\Tamper

Code

protected function matchRegex($field, $word) {
  return preg_match($word, $field) > 0;
}