Details
-
Bug
-
Resolution: Answered
-
Low
-
3.7.0, 3.8.0
-
None
-
Severity 3 - Minor
-
4
-
Description
Problem
If a Linker is set in FishEye with a simple regex that matches a single digit, like
(?i)[#]*(\d+)
some Comments and Commit Messages, even not matching the regular expression, get rendered as a combination of the string inltokxyzkdtnhgnsbdf.
Steps to reproduce
- Add a Linker to FishEye like the following:
<linker><simple regex="(?i)[#]*(\d+)" href="https://www.website.com/${1}" description="Linker"/></linker>
- Add a comment to a review containing only
"
- The comment gets rendered as:
inltokxyzkdtnhgnsbdfinltok 0 inltokxyzkdtnhgnsbdfinltok
Workaround
Avoid the Regex to be matched by single digit.
In the example provided is sufficient to remove the *.
(?i)[#](\d+)