From 93bbab593c7341676a92b56cfe64f7fde197268e Mon Sep 17 00:00:00 2001 From: Konstantin Dinev Date: Tue, 5 Nov 2024 16:28:33 +0200 Subject: [PATCH] Fix code scanning alert no. 26: Inefficient regular expression Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src/js/modules/infragistics.templating.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/modules/infragistics.templating.js b/src/js/modules/infragistics.templating.js index 7480175f0..190cb7d53 100644 --- a/src/js/modules/infragistics.templating.js +++ b/src/js/modules/infragistics.templating.js @@ -122,7 +122,7 @@ /* type="RegExp" Matches any substitution element in the template that is to be encoded before rendering Use $.ig.regExp.sub.exec(tmpl) in order to get the substitution element in the tmpl string */ - sub: /\$\{(([\w\$\-]+(\.|\s)?[\w\$\-]*)+)\}/, + sub: /\$\{([\w\$\-]+(?:\.[\w\$\-]+|\s[\w\$\-]+)*)\}/, /* type="RegExp" Matches any substitution element in the template that is to be rendered as it is Use $.ig.regExp.sub.exec(tmpl) in order to get the substitution element in the tmpl string */