From ace93239c350e28c8201d948ea0f5c9126c2759a Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 24 Oct 2013 13:15:38 +0800 Subject: Bug 930366: detection of github PRs not working with trailing '/' in urls --- extensions/BMO/bin/migrate-github-pull-requests.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/BMO/bin') diff --git a/extensions/BMO/bin/migrate-github-pull-requests.pl b/extensions/BMO/bin/migrate-github-pull-requests.pl index eba0dd422..de71a7856 100755 --- a/extensions/BMO/bin/migrate-github-pull-requests.pl +++ b/extensions/BMO/bin/migrate-github-pull-requests.pl @@ -57,7 +57,7 @@ foreach my $attachment (@$attachments) { # check payload my $url = trim($attachment->{thedata}); next if $url =~ /\s/; - next unless $url =~ m#^https://github\.com/[^/]+/[^/]+/pull/\d+$#i; + next unless $url =~ m#^https://github\.com/[^/]+/[^/]+/pull/\d+\/?$#i; $dbh->bz_start_transaction; -- cgit v1.2.3-24-g4f1b