Skip to content

Commit

Permalink
Revert #958 to test CodeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Nov 30, 2023
1 parent d61f1b7 commit 230d332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lbt/resources/ResourceFilterList.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function makeFileTypePattern(fileTypes) {
if ( !type.startsWith(".") ) {
type = "." + type;
}
return type.replace(/[*+?.()|^$\\]/g, "\\$&");
return type.replace(/[*+?.()|^$]/g, "\\$&");

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding High

This does not escape backslash characters in the input.
}).join("|") + ")";
}

Expand Down

0 comments on commit 230d332

Please sign in to comment.