Spaces:
Running
Running
import re | |
def is_blocked_markdown_code(message): | |
pattern = r"(?:python|py|javascript|js|bash|sh|html|go|cpp|c|json)\n.*?" | |
match = re.search(pattern, message, re.DOTALL | re.IGNORECASE) | |
if match: | |
return True | |
else: | |
return False |