diff --git a/repository_test.go b/repository_test.go index 0dd9f2de4..fc98fbcac 100644 --- a/repository_test.go +++ b/repository_test.go @@ -1720,7 +1720,7 @@ func (s *RepositorySuite) TestLogPathRegexpWithError(c *C) { } func (s *RepositorySuite) TestLogPathFilterRegexp(c *C) { - pathRE := regexp.MustCompile(".*\\.go") + pathRE := regexp.MustCompile(`.*\.go`) pathIter := func(path string) bool { return pathRE.MatchString(path) }