diff options
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/BMO/Extension.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index c28238197..d679ac91e 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -447,7 +447,7 @@ sub bug_format_comment { # link to CVE/CAN security releases push (@$regexes, { - match => qr/(?<!\/|=)\b((?:CVE|CAN)-\d{4}-\d{4})\b/, + match => qr/(?<!\/|=)\b((?:CVE|CAN)-\d{4}-(?:\d{4}|[1-9]\d{4,6})(?!\d))\b/, replace => sub { my $args = shift; my $match = html_quote($args->{matches}->[0]); |