Skip to content

Commit

Permalink
fix new git file plus plus plus bug (trufflesecurity#1386)
Browse files Browse the repository at this point in the history
  • Loading branch information
zricethezav authored Jun 8, 2023
1 parent dfb1a0c commit c28c70b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gitparse/gitparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ func isMinusFileLine(line []byte) bool {

// +++ b/internal/addrs/move_endpoint_module.go
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 false
Expand Down

0 comments on commit c28c70b

Please sign in to comment.