bibibi12345 commited on
Commit
27d8ea7
·
verified ·
1 Parent(s): df65d63

Update app/main.py

Browse files
Files changed (1) hide show
  1. 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
- # Restore triple backticks
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