Details
-
Type:
Change
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: DTM_V2.0800, DTM_V2.0900, V2.0700.11.932
-
Component/s: DTM
-
Labels:None
-
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