diff --git a/bot/urlinfo.py b/bot/urlinfo.py index 24b1661..f75349c 100644 --- a/bot/urlinfo.py +++ b/bot/urlinfo.py @@ -19,7 +19,7 @@ class URLInfo(Plugin): # set the size limit to 2 MB so we don't fully download too large resources SIZE_LIMIT = 2 * 1024 ** 2 - @irc3.event(r'(?i)^:\S+ PRIVMSG (?P\S+) :.*(?Phttps?:\/\/\S+\.\S+).*') + @irc3.event(r'(?i)^:\S+ PRIVMSG (?P\S+) :.*?(?Phttps?:\/\/\S+\.\S+).*') def url_parser(self, target: str, url: str): for regex in self.BLACKLIST: if re.match(regex, url):