diff options
author | kannar <kannarfr@gmail.com> | 2024-03-11 15:47:31 +0100 |
---|---|---|
committer | Heiko Becker <mail@heiko-becker.de> | 2024-03-11 22:10:28 +0000 |
commit | 3ae982051d7b6c9312f19618ff63c4b58f5ea5cc (patch) | |
tree | a39d0a64914ab76cab3afbc80069a363d3e313af | |
parent | fa0bd6dd8b7bc21b292e4f94eaa4fbf71d5240f1 (diff) | |
download | wgetpaste-3ae982051d7b6c9312f19618ff63c4b58f5ea5cc.tar.gz |
fix gists raw url
Previous pattern: https://gist.github.com/raw/<organization_label>/<gist_id> is now http 404
New pattern looks to be: https://gist.github.com/<organization_label>/<gist_id>/raw which is http 200
-rwxr-xr-x | wgetpaste | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -171,7 +171,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\)\(/.*\)$|\1/raw\2|' +REGEX_RAW_gists='s|^\(https://gist.github.com\)\(/.*\)$|\1\2/raw|' 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'; } POST_gists() { |