We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1d1cdc commit efcd2fdCopy full SHA for efcd2fd
lib/uv.js
@@ -87,15 +87,15 @@ async function uvToRequirements() {
87
*/
88
function removeEditableFlagFromRequirementsString(requirementBuffer) {
89
const flagStr = '-e ';
90
- const commentLine = '# ';
+ const commentLine = '#';
91
const lines = requirementBuffer.toString('utf8').split(EOL);
92
const newLines = [];
93
for (let i = 0; i < lines.length; i++) {
94
if (lines[i].startsWith(flagStr)) {
95
newLines.push(lines[i].substring(flagStr.length));
96
}
97
- if (!lines[i].startsWith(commentLine)) {
98
- newLines.push(lines[i]);
+ if (lines[i].startsWith(commentLine)) {
+ continue;
99
100
101
return Buffer.from(newLines.join(EOL));
0 commit comments