summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Becker <heirecka@exherbo.org>2019-06-06 14:26:29 +0200
committerHeiko Becker <heirecka@exherbo.org>2019-06-06 14:26:29 +0200
commite401afba363b6319a089f3920ce36ea1c113f94d (patch)
treea807709e890ba20d5c187bc7c9bf750642d153c5
parentc9c2fb5cdfd755305e19c986496c68a4bdd35ddf (diff)
downloadwgetpaste-e401afba363b6319a089f3920ce36ea1c113f94d.tar.gz
Fix raw URLs with dpaste
-rwxr-xr-xwgetpaste2
1 files changed, 1 insertions, 1 deletions
diff --git a/wgetpaste b/wgetpaste
index 9bf9be3..a56b5ff 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -55,7 +55,7 @@ Ruby Rhtml Sql Xml"
EXPIRATIONS_dpaste="30%days 30%days%after%last%view"
EXPIRATION_VALUES_dpaste="off on"
POST_dpaste="submit=Paste+it poster title language hold % content"
-REGEX_RAW_dpaste='s|^\(http://[^/]*/\)[^0-9]*\([0-9]*/\)$|\1\2plain/|'
+REGEX_RAW_dpaste='s|^\(http://[^/]*/\)\([[:alnum:]]*\)$|\1\2.txt|'
# gists
LANGUAGES_gists="ActionScript Ada Apex AppleScript Arc Arduino ASP Assembly
Augeas AutoHotkey Batchfile Befunge BlitzMax Boo Brainfuck Bro C C# C++