From c1b52f05823e69264df6c3c6f0c4cd10ba7cfb5a Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Wed, 28 Feb 2018 10:29:43 -0500 Subject: Bug 1433299 - Link in summary is broken --- Bugzilla/Template.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Bugzilla/Template.pm') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 87496a89e..d27896532 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -683,15 +683,17 @@ sub create { return $var; }, - # Insert `` HTML tags to camel and snake case words in the - # given string so a long bug summary, for example, will be wrapped - # in a preferred manner rather than overflowing or expanding the - # parent element. Examples: + # Insert `` HTML tags to camel and snake case words as well as + # words containing dots in the given string so a long bug summary, + # for example, will be wrapped in a preferred manner rather than + # overflowing or expanding the parent element. This conversion + # should exclude existing HTML tags such as links. Examples: # * `test_switch_window_content.py` # * `TestSwitchToWindowContent` + # * `mozilla.org` wbr => sub { my ($var) = @_; - $var =~ s/([a-z])([A-Z\._])/$1$2/g; + $var =~ s/([a-z])([A-Z\._])(?![^<]*>)/$1$2/g; return $var; }, -- cgit v1.2.3-24-g4f1b