We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3a593d commit e683ad0Copy full SHA for e683ad0
lib/EvalbotExecuter.pm
@@ -83,8 +83,8 @@ sub run {
83
my ($program, $executer, $ename) = @_;
84
if ($program =~ /^https:\/\/gist\.github\.com\/[^\/]+?\/\p{HexDigit}+$/) {
85
my $page = `curl -s $program`;
86
- $page =~ /<a\b[^>]+?\btitle="View Raw"[^>]+?\bhref="([^"]+)"/;
87
- if ($1) { $program = decode_utf8 `curl -s $1` } else { return 'gist not found' };
+ $page =~ /<a\b[^>]+?\baria-label="View Raw"[^>]+?\bhref="([^"]+)"/;
+ if ($1) { $program = decode_utf8 `curl -s https://gist.github.com$1` } else { return 'gist not found' };
88
} elsif ($program =~ /^https:\/\/github\.com\/([^\/]+\/[^\/]+)\/blob\/([^\/]+\/[^\/].*)$/) {
89
my ($project, $file) = ($1, $2);
90
0 commit comments