Skip to content
Snippets Groups Projects
Commit 49193062 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(npm): correct npmrc replace regex

parent 2a0f2fbb
No related merge requests found
......@@ -68,7 +68,7 @@ async function extractDependencies(content, packageFile, config) {
);
if (npmrc && npmrc.includes('package-lock')) {
logger.info('Stripping package-lock setting from npmrc');
npmrc = npmrc.replace(/(^|\\n)package-lock.*?(\n|$)/g, '');
npmrc = npmrc.replace(/(^|\n)package-lock.*?(\n|$)/g, '');
}
if (npmrc) {
if (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment