When there is a link to a bug tracking ticket in a commit message, and Gerrit is already configured to make links out of ticket numbers automatically, it results in a mess. There is a bug report about this since quite a while already, but no progress yet.
A workaround is to use a lookbehind regular expression, to ignore ticket numbers that are followed by a double quote or
, because they are most likely part of a generated URL.
[commentlink "bugtracking"] match = \\b([A-Z0-9]+-\\d+)(?!(\"|)) link = https://bugtracker/tickets/$1