Navigation Menu

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

Fix redbot.core.utils.common_filters.INVITE_URL_RE regex #3717

Merged
merged 2 commits into from Apr 2, 2020
Merged

Fix redbot.core.utils.common_filters.INVITE_URL_RE regex #3717

merged 2 commits into from Apr 2, 2020

Conversation

kennnyshiwa
Copy link
Contributor

Found that the regex used previously could falsely catch strings such as discord member and discord gggggg which aren't invites and shouldn't be caught, testing with this regex string still catches all invite url variations while allowing these other previously caught strings to keep working

Type

  • [X ] Bugfix
  • Enhancement
  • New feature

Description of the changes

Found that the regex used previously could falsely catch strings such as discord member and discord gggggg which aren't invites and shouldn't be caught, testing with this regex string still catches all invite url variations while allowing these other previously caught strings to keep working

Found that the regex used previously could falsely catch strings such as discord member and discord gggggg which aren't invites and shouldn't be caught, testing with this regex string still catches all invite url variations while allowing these other previously caught strings to keep working
@Jackenmen Jackenmen added Type: Fix Category: Core - API - Utils Package This is related to stuff in `redbot.core.utils` labels Apr 1, 2020
redbot/core/utils/common_filters.py Outdated Show resolved Hide resolved
@Jackenmen Jackenmen added this to the 3.3.4 milestone Apr 1, 2020
redbot/core/utils/common_filters.py Outdated Show resolved Hide resolved
Co-Authored-By: jack1142 <6032823+jack1142@users.noreply.github.com>
@kennnyshiwa
Copy link
Contributor Author

So in looking at this i agreed with your point about not worrying about http/https and or www as if people want a stronger filter based on those they could use retrigger. For discord.io/discord.li they just allow you to create personalized invites, so you give them https://discord.gg/TEeXcDY and you can make discord.io/BB-8 and discord.li redirects to discord.io so they are both the same just different domains

Copy link
Member

@Jackenmen Jackenmen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay now, thanks for the fix!

@Jackenmen Jackenmen changed the title Fix invite_url_re Fix redbot.core.utils.common_filters.INVITE_URL_RE regex Apr 2, 2020
@Jackenmen Jackenmen merged commit ffecf1e into Cog-Creators:V3/develop Apr 2, 2020
@Jackenmen Jackenmen added the Changelog Entry: Added Changelog entry for this PR has already been added to changelog PR. label Apr 5, 2020
@Jackenmen Jackenmen added the Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. label Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Core - API - Utils Package This is related to stuff in `redbot.core.utils` Changelog Entry: Added Changelog entry for this PR has already been added to changelog PR. Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants