From: Kohei Yoshino Date: Wed, 21 Nov 2018 02:46:44 +0000 (-0500) Subject: Bug 1351116 followup - Don't match regular links X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75afbb7a19f5877cd1941ac277209bb07a2b9e8e;p=thirdparty%2Fbugzilla.git Bug 1351116 followup - Don't match regular links --- diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index 2f92b5c40..ab8aae161 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -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]);