Skip to content

Commit da1793f

Browse files
authored
Merge pull request #2268 from IgniteUI/alert-autofix-328
Fix code scanning alert no. 328: Inefficient regular expression
2 parents 4b9798f + f2f28d8 commit da1793f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/modules/infragistics.templating.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
/* type="RegExp" Matches any substitution element in the template that is to be rendered as it is
127127
Use $.ig.regExp.sub.exec(tmpl) in order to get the substitution element in the tmpl string
128128
*/
129-
nonEncodeSub: /\{\{html\s+([\w\$\-]+(\.|\s)?[\w\$\-]*)+\}\}/,
129+
nonEncodeSub: /\{\{html\s+((?:[\w\$-]+)(?:\.(?:[\w\$-]+)|\s(?:[\w\$-]+))*)\}\}/,
130130
forSub: /\$\{([\w\$]+\.[\w\$]+(?:\.[\w\$]+)*)\}/,
131131
arg: /args\[\d+\](?!.*\+)/,
132132
/* type="RegExp" Matches any block directive in the template

0 commit comments

Comments
 (0)