Skip to content

Commit

Permalink
Updated replace method for Uncontrolled Resource Consumption CVE-2022…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeran-urban authored Nov 14, 2022
1 parent d9f4e23 commit 444fe1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/interpolateName.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function interpolateName(loaderContext, name, options) {
.replace(/\.\.(\/)?/g, '_$1');
directory = directory.substr(0, directory.length - 1);
} else {
directory = resourcePath.replace(/\\/g, '/').replace(/\.\.(\/)?/g, '_$1');
directory = resourcePath.replaceAll(/\\/g, '/').replaceAll(/\.\.(\/)?/g, '_$1');
}

if (directory.length === 1) {
Expand Down

0 comments on commit 444fe1f

Please sign in to comment.