Skip to content

Commit 343ff0b

Browse files
authored
Merge pull request #21 from willystadnick/master
Reset filter checks on generate
2 parents 34bec8c + f5fb093 commit 343ff0b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/ProfanityFilter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ private function replaceWithFilter($string)
148148

149149
private function generateFilterChecks()
150150
{
151+
$this->filterChecks = [];
152+
151153
foreach ($this->badWords as $string) {
152154
$this->filterChecks[] = $this->getFilterRegexp($string);
153155
}

0 commit comments

Comments
 (0)