aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Widman <jeff@jeffwidman.com>2021-04-16 02:53:38 -0700
committerGitHub <noreply@github.com>2021-04-16 11:53:38 +0200
commita50d22d149e9bb5f0b64f5d4c4a8e2cd0a2a51a4 (patch)
tree69d3a585c9cb612dc7c7e4c8b0ed93f1490b0376
parent986e60ec9ce10643da1c39a66af8c14d9cac5173 (diff)
downloadgo-git-a50d22d149e9bb5f0b64f5d4c4a8e2cd0a2a51a4.tar.gz
Repository: test, use raw string to avoid double-escape (#288)
-rw-r--r--repository_test.go2
1 files changed, 1 insertions, 1 deletions
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)
}