summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Ørsted Andresen <zlin@exherbo.org>2009-12-18 22:18:08 +0000
committerBo Ørsted Andresen <zlin@exherbo.org>2009-12-18 22:20:04 +0000
commitf49b3d891d7b97a010585b2dd15a3ac3cbf9ec65 (patch)
tree5b83c8e9846a24fb81c8fb39b2596b28088df878
parentfd763a800542363dedcc328a6d777a14556f71fa (diff)
downloadwgetpaste-f49b3d891d7b97a010585b2dd15a3ac3cbf9ec65.tar.gz
Pretend to have added raw support for tinyurl.
To make it not barf if someone sets RAW=0 in his configs.
-rwxr-xr-xwgetpaste1
1 files changed, 1 insertions, 0 deletions
diff --git a/wgetpaste b/wgetpaste
index 53163c4..de90477 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -38,6 +38,7 @@ URL_pocoo="http://paste.pocoo.org/"
# tinyurl
ENGINE_tinyurl=tinyurl
URL_tinyurl="http://tinyurl.com/ api-create.php"
+REGEX_RAW_tinyurl='s|^\(http://[^/]*/\)\([[:alnum:]]*\)$|\1\2|'
### engines
# ca