diff options
author | 2022-05-10 23:22:00 +0400 | |
---|---|---|
committer | 2022-05-10 23:22:00 +0400 | |
commit | 7eef69c7be762f0b2becf4e623c11b1507756966 (patch) | |
tree | ff75afc77bd8c897f0b3c3332a96ad99453215bd /botcore | |
parent | Merge pull request from GHSA-xq5g-8594-cfxp (diff) |
Fix Discord Invite Regex Docs
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'botcore')
-rw-r--r-- | botcore/utils/regex.py | 7 |
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( |