Skip to content

Commit

Permalink
between quotes and space is not a word boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Mar 8, 2014
1 parent 228beb2 commit 2e98e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/EvalbotExecuter.pm
Expand Up @@ -83,7 +83,7 @@ sub run {
my ($program, $executer, $ename) = @_;
if ($program =~ /^https:\/\/gist\.github\.com\/[^\/]+?\/\p{HexDigit}+$/) {
my $page = `curl -s $program`;
$page =~ /<a\b[^>]+?\btitle="View Raw"\b[^>]+?\bhref="([^"]+)"/;
$page =~ /<a\b[^>]+?\btitle="View Raw"[^>]+?\bhref="([^"]+)"/;
if ($1) { $program = decode_utf8 `curl -s $1` } else { return 'gist not found' };
} elsif ($program =~ /^https:\/\/github\.com\/([^\/]+\/[^\/]+)\/blob\/([^\/]+\/[^\/].*)$/) {
my ($project, $file) = ($1, $2);
Expand Down

0 comments on commit 2e98e16

Please sign in to comment.