Update form.py#127
Conversation
HassanAbouelela
left a comment
There was a problem hiding this comment.
Hi,
Please follow the proper contribution guidelines before making a PR to open source projects.
Is there a reason for this change? Running a regex over this field seems kind of pointless.
To be frankly honest the contributing.md was hidden in the .github folder, my bad for not looking for it more in depth. |
|
The contributing guidelines are placed in the recommended folder, as per github's instructions, to ensure they show up in the side bar or when you try to open a PR. As for using the regex here, I don't think it makes sense to add. The only benefit it has over the current implementation is that it enables the discordapp domain, and enables the specification of API version, neither of which you'll get unless you try to type the URL manually. If you copy the URL from inside the app, it'll be of the form |
Will keep that noted for next time when looking for the contributing guidelines. |
A regex check to validate webhook urls instead of a substring check