Permalink
Browse files

between quotes and space is not a word boundary

  • Loading branch information...
1 parent 228beb2 commit 2e98e16242b60aae821b07a01f66723837befaac @FROGGS FROGGS committed Mar 8, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/EvalbotExecuter.pm
View
@@ -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);

0 comments on commit 2e98e16

Please sign in to comment.