Skip to content

Commit

Permalink
Fix visma-prodsec#26 by adding missing delimiter to pip scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
nmbro committed Jun 27, 2021
1 parent 0bffa50 commit 725fe67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pip.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (p *PythonLookup) ReadPackagesFromFile(filename string) error {
if len(l) > 0 {
// Support line continuation
if strings.HasSuffix(l, "\\") {
line += l[:len(l) - 1]
line += l[:len(l)-1]
continue
}
line += l
Expand Down Expand Up @@ -73,6 +73,7 @@ func (p *PythonLookup) pipSplit(r rune) bool {
'~',
'#',
'[',
';',
}
return inSlice(r, delims)
}
Expand Down

0 comments on commit 725fe67

Please sign in to comment.