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