Uploaded image for project: 'FishEye'
  1. FishEye
  2. FE-5717

Linker regex matching single digit causes bad render for comments and commit messages

    XMLWordPrintable

Details

    • Bug
    • Resolution: Answered
    • Low
    • N/A
    • 3.7.0, 3.8.0
    • None

    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

      1. Add a Linker to FishEye like the following:
        <linker><simple regex="(?i)[#]*(\d+)" href="https://www.website.com/${1}" description="Linker"/></linker>
        
      2. Add a comment to a review containing only
        "
      3. 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+)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dcarcasole Daniele Carcasole (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: