From 52f29f2673768a9a6bc79105bd6e8ca799cf5f59 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 15 Aug 2023 23:16:51 +0300 Subject: [PATCH] exempt codeblocks from owoify award --- files/helpers/owoify.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/helpers/owoify.py b/files/helpers/owoify.py index 3693258fe..665b44c15 100644 --- a/files/helpers/owoify.py +++ b/files/helpers/owoify.py @@ -28,6 +28,9 @@ OWO_EXCLUDE_PATTERNS = [ ] def owoify(source): + if '`' in source or '
' in source or '' in source:
+		return source
+
 	word_matches = OWO_WORD_REGEX.findall(source)
 	space_matches = OWO_SPACE_REGEX.findall(source)