Update app/main.py
Browse files- app/main.py +5 -2
app/main.py
CHANGED
@@ -939,13 +939,16 @@ def deobfuscate_text(text: str) -> str:
|
|
939 |
text = text.replace("```", placeholder)
|
940 |
# Remove double backticks
|
941 |
text = text.replace("``", "")
|
942 |
-
|
943 |
-
text = text.replace(placeholder, "```")
|
944 |
|
945 |
# Remove other obfuscation characters
|
946 |
text = text.replace("♩", "")
|
947 |
text = text.replace("`♡`", "") # Handle the backtick version too
|
948 |
text = text.replace("♡", "")
|
|
|
|
|
|
|
|
|
949 |
|
950 |
return text
|
951 |
|
|
|
939 |
text = text.replace("```", placeholder)
|
940 |
# Remove double backticks
|
941 |
text = text.replace("``", "")
|
942 |
+
|
|
|
943 |
|
944 |
# Remove other obfuscation characters
|
945 |
text = text.replace("♩", "")
|
946 |
text = text.replace("`♡`", "") # Handle the backtick version too
|
947 |
text = text.replace("♡", "")
|
948 |
+
text = text.replace("``", "")
|
949 |
+
|
950 |
+
# Restore triple backticks
|
951 |
+
text = text.replace(placeholder, "```")
|
952 |
|
953 |
return text
|
954 |
|