From 7576c692203266c26a44687616f1fb2dfa3fbf98 Mon Sep 17 00:00:00 2001 From: Bruno Calza Date: Tue, 19 Dec 2023 18:45:56 -0300 Subject: [PATCH] changes variable name Signed-off-by: Bruno Calza --- cmd/vaults/commands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/vaults/commands.go b/cmd/vaults/commands.go index adc8c66..d2354fb 100644 --- a/cmd/vaults/commands.go +++ b/cmd/vaults/commands.go @@ -34,7 +34,7 @@ import ( "gopkg.in/yaml.v3" ) -var pubNameRx = regexp.MustCompile(`^([a-zA-Z_][a-zA-Z0-9_]*)[.]([a-zA-Z_][a-zA-Z0-9_]*$)`) +var vaultNameRx = regexp.MustCompile(`^([a-zA-Z_][a-zA-Z0-9_]*)[.]([a-zA-Z_][a-zA-Z0-9_]*$)`) func newVaultCreateCommand() *cli.Command { var address, dburi, provider string @@ -766,7 +766,7 @@ func newWalletCommand() *cli.Command { } func parseVaultName(name string) (ns string, rel string, err error) { - match := pubNameRx.FindStringSubmatch(name) + match := vaultNameRx.FindStringSubmatch(name) if len(match) != 3 { return "", "", errors.New( "vault name must be of the form `namespace.relation_name` using only letters, numbers, " +