aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ionite34 <[email protected]>2022-07-12 15:54:02 -0400
committerGravatar ionite34 <[email protected]>2022-07-12 15:54:02 -0400
commit21194a8817ee34229a211f6f5aae8978d054a884 (patch)
tree5dae0c0ff12b8ff0a9cd15df1db71c49d27d3b5c
parentType annotations for fun_cog (diff)
Removed redundant character class
The regex character class for the single character [w] is redundant. The character can be directly used.
-rw-r--r--bot/exts/fun/uwu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/fun/uwu.py b/bot/exts/fun/uwu.py
index f18b3658..26c5c741 100644
--- a/bot/exts/fun/uwu.py
+++ b/bot/exts/fun/uwu.py
@@ -46,7 +46,7 @@ EMOJIS = [
"^^;;",
]
-REGEX_WORD_REPLACE = re.compile(r"(?<![w])[lr](?![w])")
+REGEX_WORD_REPLACE = re.compile(r"(?<!w)[lr](?!w)")
REGEX_PUNCTUATION = re.compile(r"[.!?\r\n\t]")