From 91b19f3ffe600d07f0bc2027b7d062f04442e19b Mon Sep 17 00:00:00 2001 From: Peter Ajamian Date: Mon, 30 Nov 2020 19:47:48 +1300 Subject: [PATCH] Let's try this again. Fix regexps. --- plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index 89989c2..8168af0 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': { @@ -66,7 +66,7 @@ class Pastebin2cpaste(callbacks.Plugin): 'url': 'https://termbin.com/%s' }, 'paste.debian.net': { - 'regex': re.compile(r'([0-9]+)[.:?!,]*$'), + 'regex': re.compile(r'([0-9]+)/?[.:?!,]*$'), 'url': 'https://paste.debian.net/plain/%s' } }