Skip to content

Commit 2d155d0

Browse files
Potential fix for code scanning alert no. 354: Incomplete string escaping or encoding (#33384)
Signed-off-by: Aleksei Semikozov <alwexy@gmail.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 1ff8c08 commit 2d155d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/devextreme/eslint-scheduler-allowlist.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@ const schedulerMemberAllowlist = [
127127
];
128128

129129
export const schedulerMemberAllowlistRegex =
130-
`^(_|__esModule|${schedulerMemberAllowlist.map(s => s.replace(/\$/g, '\\$')).join('|')})$`;
130+
`^(_|__esModule|${schedulerMemberAllowlist.map((s) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')).join('|')})$`;

0 commit comments

Comments
 (0)