diff options
author | 2021-04-11 13:58:39 -0400 | |
---|---|---|
committer | 2021-04-11 13:58:39 -0400 | |
commit | fa67eebb08ec9d71d94cdeaf757cc84f33053691 (patch) | |
tree | c549791b96f2104acd043178ee4e5cdf35c12495 /bot | |
parent | Correct logger name (diff) |
Remove unused codeblock regex
With the regex sufficiently stolen from snekbox and
confirmed to work, the original codeblock regex has been removed.
Diffstat (limited to 'bot')
-rw-r--r-- | bot/exts/internal_eval/_internal_eval.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/bot/exts/internal_eval/_internal_eval.py b/bot/exts/internal_eval/_internal_eval.py index 198c1312..4746c6c9 100644 --- a/bot/exts/internal_eval/_internal_eval.py +++ b/bot/exts/internal_eval/_internal_eval.py @@ -15,8 +15,6 @@ __all__ = ["InternalEval"] log = logging.getLogger(__name__) -CODEBLOCK_REGEX = re.compile(r"(^```(py(thon)?)?\n)|(```$)") - FORMATTED_CODE_REGEX = re.compile( r"(?P<delim>(?P<block>```)|``?)" # code delimiter: 1-3 backticks; (?P=block) only matches if it's a block r"(?(block)(?:(?P<lang>[a-z]+)\n)?)" # if we're in a block, match optional language (only letters plus newline) |