Skip to content

Added loads of test candidates and updated discord webhook regex#216

Merged
bee-san merged 4 commits intobee-san:mainfrom
IlluminatiFish:main
Oct 22, 2021
Merged

Added loads of test candidates and updated discord webhook regex#216
bee-san merged 4 commits intobee-san:mainfrom
IlluminatiFish:main

Conversation

@IlluminatiFish
Copy link
Copy Markdown
Contributor

Prerequisites

Why do we need this pull request?

Better webhook url regex, to allow other subdomains such as ptb & canary which are actively used as well as allowing for the detection of webhooks using the old domain discordapp.com and allowing for the matching of webhook urls that include the api version after the api path and more distinct expressions for webhook tokens and webhook ids, also allowing for webhook urls that have the scheme of http

What GitHub issues does this fix?

Expands upon changes made in #173 and continuation of #208 due to merge conflicts with new regex test system introduced via #202

Copy / paste of output

Couldn't get the script to work so I could not test the changes to the regex i've made with the regex however I have tested it on its own in python 3.10 as well as using https://pythex.org

Added loads of test candidates and updated discord webhook regex as per bee-san#208
@bee-san
Copy link
Copy Markdown
Owner

bee-san commented Oct 19, 2021

your tests fail :(

@IlluminatiFish
Copy link
Copy Markdown
Contributor Author

your tests fail :(

yeah..that's odd

lmao json formatting goes brr
@IlluminatiFish
Copy link
Copy Markdown
Contributor Author

your tests fail :(

lmao im dumb 😆 , forgot to remove the extra , in the valid json array

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Oct 20, 2021

Codecov Report

Merging #216 (c441226) into main (75e38c6) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #216   +/-   ##
=======================================
  Coverage   92.52%   92.52%           
=======================================
  Files          14       14           
  Lines        1204     1204           
=======================================
  Hits         1114     1114           
  Misses         90       90           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 75e38c6...c441226. Read the comment docs.

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.

3 participants