summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Ørsted Andresen <zlin@exherbo.org>2009-12-18 22:17:34 +0000
committerBo Ørsted Andresen <zlin@exherbo.org>2009-12-18 22:17:34 +0000
commitfd763a800542363dedcc328a6d777a14556f71fa (patch)
tree480bc13da051560cdce11160c8c067bb221a04ea
parent5b4396faf5751ce0cf41da41f6d718d163468d1b (diff)
downloadwgetpaste-fd763a800542363dedcc328a6d777a14556f71fa.tar.gz
Add --raw support for codepad.
-rwxr-xr-xwgetpaste1
1 files changed, 1 insertions, 0 deletions
diff --git a/wgetpaste b/wgetpaste
index 376b0bf..53163c4 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -55,6 +55,7 @@ REGEX_RAW_ca='s|^\(http://[^/]*/\)\([0-9]*\)$|\1raw/\2|'
LANGUAGES_codepad="C C++ D Haskell Lua OCaml PHP Perl Plain%Text Python Ruby Scheme Tcl"
POST_codepad="submit % % lang % % code"
REGEX_URL_codepad='s|^--.*\(http://codepad.org/[^ ]\+\)|\1|p'
+REGEX_RAW_codepad='s|^\(http://[^/]*/\)\([[:alnum:]]*\)$|\1\2/raw.rb|'
# dpaste
LANGUAGES_dpaste="Plain%Text Apache%Config Bash CSS Diff Django%Template/HTML Haskell JavaScript \
Python Python%Interactive/Traceback Ruby Ruby%HTML%(ERB) SQL XML"