Files
gerrit/polygerrit-ui/app/elements/shared/gr-linked-text
Thomas Draebing 5f948ecf1d Fix commentlinks with same prefix in pattern and link
If using the commentlinks.%NAME%.links option and having the same prefix
in the pattern and the url, the parsing did not work properly.
For example:

  [commentlink "test"]
    pattern = [Hh][Tt][Tt][Pp]example
    link = http://example.com

and the line in the message:

  httpexample 1234

would result in:

  http<a href="://example.com" ...>httpexample 1234</a>

This bug was introduced in a change implementing the possibility to
have overlapping patterns, e.g. allowing a comma-separated list of
issue ids. (commit: fb48902ef3). This
would have however anyway only worked for the `html`-variant of
comment links, which allow to directly provide html-elements as a
substitute for the text matching the pattern.

Thus, this change restricts the logic introduced in the above mentioned
commit to the html-variant.

Bug: Issue 12197
Change-Id: I9efd9308f2b40f3fec8405c93849d13d4576562a
2020-01-31 08:58:08 +00:00
..