fix new git file plus plus plus bug (#1386)

This commit is contained in:
Zachary Rice 2023-06-08 18:29:11 -05:00 committed by GitHub
parent dfb1a0cd38
commit c28c70b399
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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