use built in text replacement for non regex expressions

This commit is contained in:
LBlend committed 2024-04-05 02:38:03 +02:00
1 parent 741b8aa757
commit d7d2c5a804
1 file changed
+1 -1
+1 -1
View File
@@ -63,7 +63,7 @@ class Misc(commands.Cog):
tekst = re.sub(r"n([aeiou])", r"ny\1", tekst, flags=re.IGNORECASE)
tekst = re.sub(r"N([aeiou])", r"Ny\1", tekst)
tekst = re.sub(r"th", "d", tekst, flags=re.IGNORECASE)
tekst = re.sub(r"ove", "uv", tekst)
tekst = tekst.replace("ove", "uv")
# TODO: add kaomoji? https://kaomoji.moe/