Skip to content

Commit

Permalink
changes variable name
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Calza <brunoangelicalza@gmail.com>
  • Loading branch information
brunocalza committed Dec 19, 2023
1 parent 67ece26 commit 7576c69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/vaults/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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, " +
Expand Down

0 comments on commit 7576c69

Please sign in to comment.