diff options
| author | 2019-08-13 13:48:03 +0100 | |
|---|---|---|
| committer | 2019-08-13 13:48:03 +0100 | |
| commit | 03c7e8f0665c1036ece49155340697aa3b2d107d (patch) | |
| tree | 55cb3283e4c27389b2b0a75107feef5be66243c9 /modules/shorturl.py | |
| parent | "!yt" without args should get .message from BufferLine (diff) | |
| signature | ||
return matching string from buffer.find() as most uses were redundantly regexing
Diffstat (limited to 'modules/shorturl.py')
| -rw-r--r-- | modules/shorturl.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/shorturl.py b/modules/shorturl.py index 668ac0a4..77a9a352 100644 --- a/modules/shorturl.py +++ b/modules/shorturl.py @@ -72,8 +72,7 @@ class Module(ModuleManager.BaseModule): else: url = target.buffer.find(utils.http.REGEX_URL) if url: - url = re.search(utils.http.REGEX_URL, url.message).group(0) - url = utils.http.url_sanitise(url) + url = utils.http.url_sanitise(url.match) if not url: raise utils.EventError("No URL provided/found.") return url |
