Uploaded image for project: 'PROFINET IO IRT-Controller DTM'
  1. PROFINET IO IRT-Controller DTM
  2. DTMV1PNCIRT-989

ExtractModule(Submodule)RefId fails when RefId contains square brackets

    Details

    • Account:
      Device Library 1 (operativ) (DEVLIB)

      Description

      ExtractModuleRefId returns wrong results when the RefId itself contains square brackets. Example: RefId Text [4711] gets encoded as Text [Text [4711]], the current rfind-based algorithm then incorrectly extracts Text [4711]].

      Solution: Replace rfind with bracket-matching – iterate backwards from the last ] counting bracket depth until depth reaches 0.

      Acceptance Criteria:

      • Correct extraction when RefId contains square brackets
      • Unit tests covered

        Attachments

          Expenses

            Activity

              Status Description

                People

                • Reporter:
                  MKrifka Markus Krifka
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: