]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1351116 followup - Don't match regular links
authorKohei Yoshino <kohei.yoshino@gmail.com>
Wed, 21 Nov 2018 02:46:44 +0000 (21:46 -0500)
committerGitHub <noreply@github.com>
Wed, 21 Nov 2018 02:46:44 +0000 (21:46 -0500)
extensions/BMO/Extension.pm

index 2f92b5c409eec57e6881804d58f0359331ea130f..ab8aae161a68ca8863982e022fbb2a1a66997ac4 100644 (file)
@@ -724,7 +724,7 @@ sub bug_format_comment {
 
     # link github pull requests and issues
     push (@$regexes, {
-        match => qr/\b([A-Za-z0-9_\.-]+)\/([A-Za-z0-9_\.-]+)\#([0-9]+)\b/,
+        match => qr/(?!\w+\/)([\w\.-]+)\/([\w\.-]+)\#(\d+)\b/,
         replace => sub {
             my $args = shift;
             my $owner = html_quote($args->{matches}->[0]);