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 52b1dc9 commit dbdf383Copy full SHA for dbdf383
lib/EvalbotExecuter.pm
@@ -78,6 +78,11 @@ my $max_output_len = 290;
78
79
sub run {
80
my ($program, $executer) = @_;
81
+ if ($program =~ /^https:\/\/gist\.github\.com\/\d+$/) {
82
+ my $page = `curl -s $program`;
83
+ $page =~ /href="(\/raw[^"]+)"/;
84
+ $program = `curl -s https://gist.github.com$1`;
85
+ }
86
my $response = _fork_and_eval($program, $executer);
87
if (!length $response){
88
$response = ' ( no output )';
0 commit comments