Fedora pastebin sometimes has a dash (-) in the code.

This commit is contained in:
Peter Ajamian 2019-08-10 18:36:34 +12:00
parent 6fa66767a3
commit 9383139d03

View File

@ -54,7 +54,7 @@ class Pastebin2cpaste(callbacks.Plugin):
'url': 'https://pastebin.com/raw/%s'
},
'paste.fedoraproject.org': {
'regex': re.compile(r'([0-9a-zA-Z~]+)(?:/raw)?[.:?!,]*$'),
'regex': re.compile(r'([0-9a-zA-Z~-]+)(?:/raw)?[.:?!,]*$'),
'url': 'https://paste.fedoraproject.org/paste/%s/raw'
}
}