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

Return only 5 results & fix mention regex #7

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Return only 5 results & fix mention regex #7

merged 1 commit into from
Oct 25, 2023

Conversation

ButterscotchV
Copy link
Member

Fixed 30 results being requested when only 5 are used, and not trimming to 5 for support forum posts either.

From testing with https://regex101.com/ it doesn't look like any regex engine except Python likes {,4}, not totally sure if it's working currently but might as well just make it {0,4}. Also made the regex look for word boundaries, so it doesn't get triggered by "both" or anything like that anymore.

@ButterscotchV ButterscotchV added Type: Bug Something isn't working Area: Discord Bot Related to the Discord bot labels Oct 25, 2023
@ButterscotchV ButterscotchV requested a review from ImUrX October 25, 2023 01:36
@ImUrX ImUrX merged commit eed1aec into main Oct 25, 2023
@ImUrX ImUrX deleted the bot-changes branch October 25, 2023 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Discord Bot Related to the Discord bot Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants