summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDawid Dziurla <dawidd0811@gmail.com>2019-10-31 12:57:58 +0100
committerJesse Duffield <jessedduffield@gmail.com>2019-11-05 19:22:01 +1100
commit2484ec9c11a70d688648c613d74c828831c7c990 (patch)
tree4cacc0e4c1b49a36ebb4227b249d938db8221266
parent5f9de1f034459f0e05fcc68057dacd2d86f6e9ec (diff)
fix headerRegexp
-rw-r--r--pkg/git/patch_modifier.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/git/patch_modifier.go b/pkg/git/patch_modifier.go
index bb462a3c3..c559973fa 100644
--- a/pkg/git/patch_modifier.go
+++ b/pkg/git/patch_modifier.go
@@ -9,7 +9,7 @@ import (
"github.com/sirupsen/logrus"
)
-var headerRegexp = regexp.MustCompile(`(?m)^@@ -(\\d+)[^\\+]+\\+(\\d+)[^@]+@@(.*)$`)
+var headerRegexp = regexp.MustCompile(`(?m)^@@ -(\d+)[^\+]+\+(\d+)[^@]+@@(.*)$`)
type PatchHunk struct {
header string