diff --git a/services/gitdiff/gitdiff.go b/services/gitdiff/gitdiff.go
index fca210bb10..d50ae6ae27 100644
--- a/services/gitdiff/gitdiff.go
+++ b/services/gitdiff/gitdiff.go
@@ -181,7 +181,7 @@ var (
removedCodePrefix = []byte(``)
codeTagSuffix = []byte(``)
)
-var addSpanRegex = regexp.MustCompile(`.Milestone, from, milestoneID"},
{Type: dmp.DiffEqual, Text: ")"},
}, DiffLineDel))
+
+ assertEqual(t, "r.WrapperRenderer(w, language, true, attrs, false)", diffToHTML("", []dmp.Diff{
+ {Type: dmp.DiffEqual, Text: "r.WrapperRenderer(w, "},
+ {Type: dmp.DiffDelete, Text: "language, true, attrs"},
+ {Type: dmp.DiffEqual, Text: ", false)"},
+ }, DiffLineDel))
+
+ assertEqual(t, "language, true, attrs, false)", diffToHTML("", []dmp.Diff{
+ {Type: dmp.DiffInsert, Text: "language, true, attrs"},
+ {Type: dmp.DiffEqual, Text: ", false)"},
+ }, DiffLineAdd))
}
func TestParsePatch(t *testing.T) {