summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--botcore/utils/regex.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/botcore/utils/regex.py b/botcore/utils/regex.py
index 8eb38ba2..56c50dad 100644
--- a/botcore/utils/regex.py
+++ b/botcore/utils/regex.py
@@ -17,11 +17,12 @@ DISCORD_INVITE = re.compile(
"""
Regex for Discord server invites.
-:meta hide-value:
.. warning::
This regex pattern will capture until a whitespace, if you are to use the 'invite' capture group in
- any HTTP requests or similar. Please ensure you sanitise the output using something similar to
- https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote.
+ any HTTP requests or similar. Please ensure you sanitise the output using something
+ such as :func:`urllib.parse.quote`.
+
+:meta hide-value:
"""
FORMATTED_CODE_REGEX = re.compile(