From f804555163c0a17ac3696850091e017ce7c4512e Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 15 Aug 2023 23:17:41 +0300 Subject: [PATCH] exempt codeblocks from marsify --- files/helpers/marsify.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/helpers/marsify.py b/files/helpers/marsify.py index 949d6f3d19..a212e0a6af 100644 --- a/files/helpers/marsify.py +++ b/files/helpers/marsify.py @@ -3,6 +3,9 @@ from random import choice from .const_stateful import marsey_mappings def marsify(text): + if '`' in text or '
' in text or '' in text:
+		return text
+
 	new_text = ''
 	for x in text.split(' '):
 		new_text += f'{x} '