Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,12 @@ export const CLASS_MEMBER_REPLACEMENTS_MIGRATION: ClassMemberReplacementInstruct
{ property: 'isXl', replacement: '${expression}.xl()' },
{ property: 'isXxl', replacement: '${expression}.xxl()' }
]
},
{
module: /@(siemens|simpl)\/element-ng(\/modal)?/,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The regular expression for the module path is not anchored. This could lead to incorrect matches if a module path contains @(siemens|simpl)/element-ng(/modal)? as a substring. To ensure an exact match, it's better to anchor the regex with ^ and $.

Suggested change
module: /@(siemens|simpl)\/element-ng(\/modal)?/,
module: /^@(siemens|simpl)\/element-ng(\/modal)?$/,

typeNames: ['ModalOptions'],
propertyReplacements: [
{ property: 'initialState', replacement: '${expression}.inputValues' }
]
}
];
Loading