Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-13642

Bitbucket links regex matches on HTML Symbol Entities

    XMLWordPrintable

Details

    Description

      A common Bitbucket link is linking to issues in an issue tracker. A common way to reference an issue is using #<issue number>.

      When setting up this type of link in bitbucket using the regex #([0-9]+), it also matches the # character in some HTML Symbol Entities erroneously.

      E.g a commit with following message:

      Does foo to 'bar'. Fixes BCLOUD-123.

      results in:

      Does foo to &[#39|https:somissuetracker.io/39];bar&[#39|https:somissuetracker.io/39];. Fixes [#123|https:somissuetracker.io/123].

      while I expect:

      Does foo to 'bar'. Fixes [#123|https:somissuetracker.io/123].

      Attachments

        Activity

          People

            Unassigned Unassigned
            48f00a7333f7 Seppe Stas
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: