Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Okstad <pokstad@gitlab.com>2019-03-01 20:08:38 +0300
committerPaul Okstad <pokstad@gitlab.com>2019-03-01 20:08:38 +0300
commit7165bef88b420d9520ce95c43bf077821f5d486e (patch)
tree85e16cbc7a5dbd5468bf9fd55ba96c66acfa357a
parent43c9e8ed1bc234dc1807b5fdeea2c9b6674c7919 (diff)
add regexp anchors to request message patternpo_protoc_gen_gitaly
-rw-r--r--internal/praefect/pb/linter/lint.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/praefect/pb/linter/lint.go b/internal/praefect/pb/linter/lint.go
index e75606619..a7147721a 100644
--- a/internal/praefect/pb/linter/lint.go
+++ b/internal/praefect/pb/linter/lint.go
@@ -10,7 +10,7 @@ import (
)
var (
- requestRegex = regexp.MustCompile(".*Request")
+ requestRegex = regexp.MustCompile("^.*Request$")
)
// ensureMsgOpType will ensure that message includes the op_type option.