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 regex exception occuring on some prefixes in the javacord module #400

Merged

Conversation

phinner
Copy link
Contributor

@phinner phinner commented Oct 31, 2022

An exception occurs if you use a regex meta character as a prefix in the javacord implementation. This fix uses the trick I found in the JDA implementation where the prefix length is used to cut the command input.

@phinner
Copy link
Contributor Author

phinner commented Oct 31, 2022

Yay, 400th PR 🍾

@phinner phinner changed the title Fix regex exception occurung on some prefixes in the javacord module Fix regex exception occuring on some prefixes in the javacord module Oct 31, 2022
@jpenilla jpenilla merged commit 865c8d1 into Incendo:1.8.0-dev Nov 28, 2022
@phinner phinner deleted the fix/regex-exceptions-on-some-prefixes branch November 28, 2022 18:59
jpenilla pushed a commit that referenced this pull request Dec 13, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…400)

Bug be gone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants