Skip to content

Commit 50bb0d9

Browse files
authored
[FIX] Incomplete string escaping or encoding (#958)
JIRA: CPOUI5FOUNDATION-728 fixes: https://github.com/SAP/ui5-builder/security/code-scanning/2
1 parent 52fb507 commit 50bb0d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/lbt/resources/ResourceFilterList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function makeFileTypePattern(fileTypes) {
1212
if ( !type.startsWith(".") ) {
1313
type = "." + type;
1414
}
15-
return type.replace(/[*+?.()|^$]/g, "\\$&");
15+
return type.replace(/[*+?.()|^$\\]/g, "\\$&");
1616
}).join("|") + ")";
1717
}
1818

0 commit comments

Comments
 (0)