utils: Include query parameters in matchDiscord function #145
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Modify the regular expression for the matchDiscord function to include the query parameters which the Discord API expects.
Motivation and Context
Saw logs failing to parse with a "NO LOG" error in the Discord server.
How Has This Been Tested?
Testing with this log URL: https://cdn.discordapp.com/attachments/355827402561159178/1217544190716805302/2024-03-12_22-41-48.txt?ex=66046963&is=65f1f463&hm=1044577dc373af1519f996eb78e3a96fe94ccd6c4e19dd8437f8ce953eec7222&
Previously only
374636015396192257/1209173862395420702/2024-02-17_18-25-28.txt
was being matched which resulted in a 403 response when using the Discord API. Now the full query is matched and passed through to the API.Before:
After:
Types of changes
Checklist: