Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ConsoleTVs committed Dec 5, 2017
1 parent 8b8b829 commit 354adb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Blocker.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function badWords()
if ($this->strict) {
return str_contains(strtolower($this->text), strtolower($value['word']));
}
return in_array($value['word'], $words);
return in_array(strtolower($value['word']), $words);
})->map(function ($value) {
return [
'language' => $value['language'],
Expand All @@ -153,7 +153,7 @@ public function filter()
return (str_contains(strtolower($value), $bad_words)) ? $this->blockWord($value) : $value;
}

return in_array($value, $bad_words) ? $this->blockWord($value) : $value;
return in_array(strtolower($value), $bad_words) ? $this->blockWord($value) : $value;
})->implode(' ');
}

Expand Down

0 comments on commit 354adb2

Please sign in to comment.