Skip to content

Commit 11327c6

Browse files
committed
Unified usage of flags kwarg
1 parent 8b71cb4 commit 11327c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

botcore/utils/regex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
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
"""
3939
Regex for formatted code, using Discord's code blocks.
@@ -45,7 +45,7 @@
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
"""
5151
Regex for raw code, *not* using Discord's code blocks.

0 commit comments

Comments
 (0)