Skip to content

Commit

Permalink
Merge pull request #2268 from IgniteUI/alert-autofix-328
Browse files Browse the repository at this point in the history
Fix code scanning alert no. 328: Inefficient regular expression
  • Loading branch information
ChronosSF authored Nov 12, 2024
2 parents 4b9798f + f2f28d8 commit da1793f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/modules/infragistics.templating.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
/* 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
*/
nonEncodeSub: /\{\{html\s+([\w\$\-]+(\.|\s)?[\w\$\-]*)+\}\}/,
nonEncodeSub: /\{\{html\s+((?:[\w\$-]+)(?:\.(?:[\w\$-]+)|\s(?:[\w\$-]+))*)\}\}/,
forSub: /\$\{([\w\$]+\.[\w\$]+(?:\.[\w\$]+)*)\}/,
arg: /args\[\d+\](?!.*\+)/,
/* type="RegExp" Matches any block directive in the template
Expand Down

0 comments on commit da1793f

Please sign in to comment.