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 228beb2 commit 2e98e16Copy full SHA for 2e98e16
lib/EvalbotExecuter.pm
@@ -83,7 +83,7 @@ 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"\b[^>]+?\bhref="([^"]+)"/;
+ $page =~ /<a\b[^>]+?\btitle="View Raw"[^>]+?\bhref="([^"]+)"/;
87
if ($1) { $program = decode_utf8 `curl -s $1` } else { return 'gist not found' };
88
} elsif ($program =~ /^https:\/\/github\.com\/([^\/]+\/[^\/]+)\/blob\/([^\/]+\/[^\/].*)$/) {
89
my ($project, $file) = ($1, $2);
0 commit comments