From a50d22d149e9bb5f0b64f5d4c4a8e2cd0a2a51a4 Mon Sep 17 00:00:00 2001 From: Jeff Widman Date: Fri, 16 Apr 2021 02:53:38 -0700 Subject: Repository: test, use raw string to avoid double-escape (#288) --- repository_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository_test.go b/repository_test.go index 0dd9f2d..fc98fbc 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) } -- cgit