We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d074410 commit c1d1cdcCopy full SHA for c1d1cdc
lib/uv.js
@@ -87,13 +87,18 @@ async function uvToRequirements() {
87
*/
88
function removeEditableFlagFromRequirementsString(requirementBuffer) {
89
const flagStr = '-e ';
90
+ 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)) {
- lines[i] = lines[i].substring(flagStr.length);
95
+ newLines.push(lines[i].substring(flagStr.length));
96
+ }
97
+ if (!lines[i].startsWith(commentLine)) {
98
+ newLines.push(lines[i]);
99
}
100
- return Buffer.from(lines.join(EOL));
101
+ return Buffer.from(newLines.join(EOL));
102
103
104
module.exports = { uvToRequirements };
0 commit comments