issues
search
progval
/
Supybot-plugins
Collection of plugins for Supybot/Limnoria I wrote or forked.
https://github.com/ProgVal/Limnoria/
107
stars
63
forks
source link
GitHub: Improve URL shortening code
#280
Closed
ghost
closed
9 years ago
ghost
commented
9 years ago
Some keys, such as
compare
, do not end with (or even contain)
url
, so now we simply check whether the value starts with
http://
or
https://
(not just
http
, since that might have false positives).
Use
urlparse
to get the host part of the URL.
compare
, do not end with (or even contain)url
, so now we simply check whether the value starts withhttp://
orhttps://
(not justhttp
, since that might have false positives).urlparse
to get the host part of the URL.