Skip to content

Commit 8129711

Browse files
author
Perl 6 Evalbot
committed
fix gists
1 parent 6f67aa4 commit 8129711

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/EvalbotExecuter.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ sub run {
8080
my ($program, $executer) = @_;
8181
if ($program =~ /^https:\/\/gist\.github\.com\/\d+$/) {
8282
my $page = `curl -s $program`;
83-
$page =~ /href="(\/raw[^"]+)"/;
84-
if ($1) { $program = `curl -s https://gist.github.com$1` } else { return 'gist not found' };
83+
$page =~ /href="\/raw([^"]+)"/;
84+
if ($1) { $program = `curl -s https://raw.github.com/gist$1` } else { return 'gist not found' };
8585
}
8686
my $response = _fork_and_eval($program, $executer);
8787
if (!length $response){

0 commit comments

Comments
 (0)