Skip to content

Commit

Permalink
fix gists raw url
Browse files Browse the repository at this point in the history
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
  • Loading branch information
KannarFr authored and heirecka committed Mar 11, 2024
1 parent fa0bd6d commit 3ae9820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgetpaste
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 3ae9820

Please sign in to comment.