Skip to content

Commit b45975f

Browse files
authored
fix: allow ignored packages without version (#246)
Signed-off-by: Ruben Romero Montes <[email protected]>
1 parent d454a4a commit b45975f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/providers/python_pip.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ function splitToNameVersion(nameVersion) {
9595
}
9696
const regex = /[^\w\s-_]/g;
9797
let endIndex = nameVersion.search(regex);
98+
if(endIndex === -1) {
99+
return [nameVersion.trim()]
100+
}
98101
result.push(nameVersion.substring(0, endIndex).trim())
99102
return result;
100103
}

0 commit comments

Comments
 (0)