mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 15:14:38 +00:00
fix new git file plus plus plus bug (#1386)
This commit is contained in:
parent
dfb1a0cd38
commit
c28c70b399
1 changed files with 1 additions and 1 deletions
|
@ -388,7 +388,7 @@ func isMinusFileLine(line []byte) bool {
|
||||||
|
|
||||||
// +++ b/internal/addrs/move_endpoint_module.go
|
// +++ b/internal/addrs/move_endpoint_module.go
|
||||||
func isPlusFileLine(line []byte) bool {
|
func isPlusFileLine(line []byte) bool {
|
||||||
if len(line) >= 6 && bytes.Equal(line[:3], []byte("+++")) {
|
if len(line) >= 6 && bytes.Equal(line[:4], []byte("+++ ")) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in a new issue