aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-05-10 23:22:00 +0400
committerGravatar Hassan Abouelela <[email protected]>2022-05-10 23:22:00 +0400
commit7eef69c7be762f0b2becf4e623c11b1507756966 (patch)
treeff75afc77bd8c897f0b3c3332a96ad99453215bd
parentMerge pull request from GHSA-xq5g-8594-cfxp (diff)
Fix Discord Invite Regex Docs
Signed-off-by: Hassan Abouelela <[email protected]>
-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(