diff options
author | 2022-08-16 18:41:49 -0400 | |
---|---|---|
committer | 2022-08-16 18:41:49 -0400 | |
commit | 11327c6d9e9e702afe5e3dfa158fa78251d87e9b (patch) | |
tree | 8c0f7be9fafb3a626f8310ba3e64f98e22380a90 | |
parent | Corrected docstrings (diff) |
Unified usage of flags kwarg
-rw-r--r-- | botcore/utils/regex.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/botcore/utils/regex.py b/botcore/utils/regex.py index 76311ca7..b13b0408 100644 --- a/botcore/utils/regex.py +++ b/botcore/utils/regex.py @@ -33,7 +33,7 @@ FORMATTED_CODE_REGEX = re.compile( r"(?P<code>.*?)" # extract all code inside the markup r"\s*" # any more whitespace before the end of the code markup r"(?P=delim)", # match the exact same delimiter from the start again - re.DOTALL | re.IGNORECASE # "." also matches newlines, case insensitive + flags=re.DOTALL | re.IGNORECASE # "." also matches newlines, case insensitive ) """ Regex for formatted code, using Discord's code blocks. @@ -45,7 +45,7 @@ RAW_CODE_REGEX = re.compile( r"^(?:[ \t]*\n)*" # any blank (empty or tabs/spaces only) lines before the code r"(?P<code>.*?)" # extract all the rest as code r"\s*$", # any trailing whitespace until the end of the string - re.DOTALL # "." also matches newlines + flags=re.DOTALL # "." also matches newlines ) """ Regex for raw code, *not* using Discord's code blocks. |