Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update regex #294

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
Changelog
=========

- :release:`11.5.1 <23rd November 2024>`
- :bug:`294` Update :obj:`pydis_core.utils.regex.DISCORD_INVITE` to not be overly strict.


- :release:`11.5.0 <17th October 2024>`
- :feature:`282` Update :obj:`pydis_core.utils.regex.DISCORD_INVITE` to cover more edge cases.

Expand Down
2 changes: 1 addition & 1 deletion pydis_core/utils/regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

DISCORD_INVITE = re.compile(
r"(https?://)?(www\.)?" # Optional http(s) and www.
r"(discord(app)?)?" # Optional discord(app)
r"(\B|\bdiscord(app)?)?" # Optional discord(app)
r"([.,]|dot)" # Various characters to cover dots
r"(gg|com|me|li|io)" # A few TLDs that embed within discord
r"((/|slash|\\)(invite))?" # / or \ or 'slash' invite
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pydis_core"
version = "11.5.0"
version = "11.5.1"
description = "PyDis core provides core functionality and utility to the bots of the Python Discord community."
authors = ["Python Discord <[email protected]>"]
license = "MIT"
Expand Down
Loading