Skip to content

Commit

Permalink
Format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyyrylainen committed Feb 19, 2024
1 parent ecf3601 commit d19195d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/belgium_censor/censor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def filter(text)
original = text

# preprocess by removing non-printing characters
text_without_non_printing = text.gsub(/[\u200B-\u200D\uFEFF]/, '')
text_without_non_printing = text.gsub(/[\u200B-\u200D\uFEFF]/, "")

# apply the bad words filter list
filtered = text_without_non_printing.gsub(@combined_regex) { |_| REPLACING_WORD }
Expand Down

0 comments on commit d19195d

Please sign in to comment.