exempt codeblocks from owoify award

pull/195/head
Aevann 2023-08-15 23:16:51 +03:00
parent 99b0aab584
commit 52f29f2673
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ OWO_EXCLUDE_PATTERNS = [
]
def owoify(source):
if '`' in source or '<pre>' in source or '<code>' in source:
return source
word_matches = OWO_WORD_REGEX.findall(source)
space_matches = OWO_SPACE_REGEX.findall(source)