diff options
author | Bo Ørsted Andresen <zlin@exherbo.org> | 2013-09-24 21:27:41 +0200 |
---|---|---|
committer | Bo Ørsted Andresen <zlin@exherbo.org> | 2013-09-24 21:28:29 +0200 |
commit | 3101b36a355501f6e05f26950b691ac9797053ee (patch) | |
tree | b812900b84d8c4f4dba6991b5d2887d443d25f10 | |
parent | 92e0f6e0e1357d056f288b8cf7ebf149bd0ea0f0 (diff) | |
download | wgetpaste-3101b36a355501f6e05f26950b691ac9797053ee.tar.gz |
Fix --raw for gists.
-rwxr-xr-x | wgetpaste | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -97,7 +97,7 @@ rb rs sage sass scala scm sci scss self sh st tpl sql sml sc tcl tcsh tea tex textile t twig vala v vhd vim vb xml xq xs yml auto" DEFAULT_LANGUAGE_gists="Auto" REGEX_URL_gists='s|^.*"html_url": "\([^"]\+gist[^"]\+\)".*$|\1|p' -REGEX_RAW_gists='s|^\(https://\)\(gist\)\(.github.com/\)\(.*\)$|\1raw\3\2/\4|' +REGEX_RAW_gists='s|^\(https://gist.github.com\)\(/.*\)$|\1/raw\2|' escape_description_gists() { sed -e 's|"|\\"|g' -e 's|\x1b|\\u001b|g' -e 's|\r||g' <<< "$*"; } escape_input_gists() { sed -e 's|\\|\\\\|g' -e 's|\x1b|\\u001b|g' -e 's|\r||g' -e 's|\t|\\t|g' -e 's|"|\\"|g' -e 's|$|\\n|' <<< "$*" | tr -d '\n'; } json_gists() { |