diff options
author | Paul Okstad <pokstad@gitlab.com> | 2019-03-01 20:08:38 +0300 |
---|---|---|
committer | Paul Okstad <pokstad@gitlab.com> | 2019-03-01 20:08:38 +0300 |
commit | 7165bef88b420d9520ce95c43bf077821f5d486e (patch) | |
tree | 85e16cbc7a5dbd5468bf9fd55ba96c66acfa357a | |
parent | 43c9e8ed1bc234dc1807b5fdeea2c9b6674c7919 (diff) |
add regexp anchors to request message patternpo_protoc_gen_gitaly
-rw-r--r-- | internal/praefect/pb/linter/lint.go | 2 |
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. |