From 1f4cf959db6ce8ba08a9cb45f060852f3bdfa3d1 Mon Sep 17 00:00:00 2001 From: Peter Ajamian Date: Mon, 30 Nov 2020 19:44:59 +1300 Subject: [PATCH] Allow a slash at the end of debian URLs. --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 4020063..89989c2 100644 --- a/plugin.py +++ b/plugin.py @@ -54,7 +54,7 @@ class Pastebin2cpaste(callbacks.Plugin): 'url': 'https://pastebin.com/raw/%s' }, 'hastebin.com': { - 'regex': re.compile(r'/([a-z]+)(?:\.[a-z]+)?[.:?!,]*$'), + 'regex': re.compile(r'/([a-z]+)(?:\.[a-z]+)?[.:?!,]*/?$'), 'url': 'https://hastebin.com/raw/%s' }, 'www.irccloud.com': {