Skip to content

Commit

Permalink
Update korcen.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanat05 authored Jul 4, 2022
1 parent e46d008 commit 38fc5c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions korcen/korcen.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,8 +833,8 @@ def check(self, text):

text = re.sub("```css", "", newtext)
text = re.sub("ex\)", "", text)
text = re.sub("*", "", text)
text = re.sub("[^a-Z]", "", text)
text = re.sub("\*", "", text)
text = re.sub("[^a-z]", "", text)
censored_text = profanity.censor(text, '▩')
if '▩' in censored_text:
return True
Expand Down Expand Up @@ -1954,8 +1954,8 @@ def english(self, text):

text = re.sub("```css", "", newtext)
text = re.sub("ex\)", "", text)
text = re.sub("*", "", text)
text = re.sub("[^a-Z]", "", text)
text = re.sub("\*", "", text)
text = re.sub("[^a-z]", "", text)
censored_text = profanity.censor(text, '▩')
if '▩' in censored_text:
return True
Expand Down

0 comments on commit 38fc5c5

Please sign in to comment.