File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3333 r"(?P<code>.*?)" # extract all code inside the markup
3434 r"\s*" # any more whitespace before the end of the code markup
3535 r"(?P=delim)" , # match the exact same delimiter from the start again
36- re .DOTALL | re .IGNORECASE # "." also matches newlines, case insensitive
36+ flags = re .DOTALL | re .IGNORECASE # "." also matches newlines, case insensitive
3737)
3838"""
3939Regex for formatted code, using Discord's code blocks.
4545 r"^(?:[ \t]*\n)*" # any blank (empty or tabs/spaces only) lines before the code
4646 r"(?P<code>.*?)" # extract all the rest as code
4747 r"\s*$" , # any trailing whitespace until the end of the string
48- re .DOTALL # "." also matches newlines
48+ flags = re .DOTALL # "." also matches newlines
4949)
5050"""
5151Regex for raw code, *not* using Discord's code blocks.
You can’t perform that action at this time.
0 commit comments