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 33
33
r"(?P<code>.*?)" # extract all code inside the markup
34
34
r"\s*" # any more whitespace before the end of the code markup
35
35
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
37
37
)
38
38
"""
39
39
Regex for formatted code, using Discord's code blocks.
45
45
r"^(?:[ \t]*\n)*" # any blank (empty or tabs/spaces only) lines before the code
46
46
r"(?P<code>.*?)" # extract all the rest as code
47
47
r"\s*$" , # any trailing whitespace until the end of the string
48
- re .DOTALL # "." also matches newlines
48
+ flags = re .DOTALL # "." also matches newlines
49
49
)
50
50
"""
51
51
Regex for raw code, *not* using Discord's code blocks.
You can’t perform that action at this time.
0 commit comments