olagood / drastikbot_modules

Modules for drastikbot
0 stars 5 forks source link

url.py - Remove unneeded functionality in get_url() #7

Closed olagood closed 5 years ago

olagood commented 5 years ago

The function get_url() was changed to only detect urls with an http or an https scheme. This means that the following line is no longer needed: https://github.com/olagood/drastikbot_modules/blob/d9cd4c5939eb6fa584d6c7905958f834a4b27fc3/url.py#L98

This is because it is no longer possible to unintentionally parse incomplete IP addresses, since the scheme will be required. As a result removal (or commenting) of the line above is suggested.