Skip to content

Commit

Permalink
fix: lint && npm audit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Dec 3, 2024
1 parent 868f2d8 commit 93ae692
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 20 deletions.
34 changes: 20 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,13 @@ class Github {
return '-e file:.';
}
if (/^\s*#\s*-r\s+\S*requirements\//.test(line)) {
// Replace everything before 'requirements/' with '# -r requirements/'
const fixedLine = line.replace(/#\s*-r\s+\S*requirements\//, '# -r requirements/');
// Replace everything before 'requirements/' with '# -r requirements/'
const fixedLine = line.replace(/#\s*-r\s+\S*requirements\//, '# -r requirements/');

if (fixedLine !== line) {
needsUpdate = true;
return fixedLine;
}
if (fixedLine !== line) {
needsUpdate = true;
return fixedLine;
}
}
return line;
});
Expand Down

0 comments on commit 93ae692

Please sign in to comment.