diff options
author | Aditya R <arajan@redhat.com> | 2022-03-13 23:26:59 +0530 |
---|---|---|
committer | Aditya R <arajan@redhat.com> | 2022-03-14 12:26:12 +0530 |
commit | 780d4b2d65b196311e70f3bfe8cee9701056400a (patch) | |
tree | b3117a629db6d1c41ef9cbd76b822ef37c185400 /vendor/google.golang.org/grpc/internal/grpcutil/regex.go | |
parent | 0144cabc41b82e4c1b59f681ca845c01ae1735de (diff) | |
download | podman-780d4b2d65b196311e70f3bfe8cee9701056400a.tar.gz podman-780d4b2d65b196311e70f3bfe8cee9701056400a.tar.bz2 podman-780d4b2d65b196311e70f3bfe8cee9701056400a.zip |
vendor: bump buildah, c/image and c/storage
Bumps
c/buildah to -> `v1.24.3-0.20220310160415-5ec70bf01ea5`
c/storage to -> `v1.38.3-0.20220308085612-93ce26691863`
c/image to -> `v5.20.1-0.20220310094651-0d8056ee346f`
Signed-off-by: Aditya R <arajan@redhat.com>
Diffstat (limited to 'vendor/google.golang.org/grpc/internal/grpcutil/regex.go')
-rw-r--r-- | vendor/google.golang.org/grpc/internal/grpcutil/regex.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/vendor/google.golang.org/grpc/internal/grpcutil/regex.go b/vendor/google.golang.org/grpc/internal/grpcutil/regex.go index 2810a8ba2..7a092b2b8 100644 --- a/vendor/google.golang.org/grpc/internal/grpcutil/regex.go +++ b/vendor/google.golang.org/grpc/internal/grpcutil/regex.go @@ -20,9 +20,12 @@ package grpcutil import "regexp" -// FullMatchWithRegex returns whether the full string matches the regex provided. -func FullMatchWithRegex(re *regexp.Regexp, string string) bool { +// FullMatchWithRegex returns whether the full text matches the regex provided. +func FullMatchWithRegex(re *regexp.Regexp, text string) bool { + if len(text) == 0 { + return re.MatchString(text) + } re.Longest() - rem := re.FindString(string) - return len(rem) == len(string) + rem := re.FindString(text) + return len(rem) == len(text) } |