From 75afbb7a19f5877cd1941ac277209bb07a2b9e8e Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Tue, 20 Nov 2018 21:46:44 -0500 Subject: [PATCH] Bug 1351116 followup - Don't match regular links --- extensions/BMO/Extension.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- 2.47.3