mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-21 10:47:34 -05:00
14 lines
437 B
Go
14 lines
437 B
Go
// Copyright (c) The OpenTofu Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package keyprovider
|
|
|
|
import "regexp"
|
|
|
|
// TODO is there a generalized way to regexp-check names?
|
|
var addrRe = regexp.MustCompile(`^key_provider\.([a-zA-Z_0-9-]+)\.([a-zA-Z_0-9-]+)$`)
|
|
var nameRe = regexp.MustCompile("^([a-zA-Z_0-9-]+)$")
|
|
var idRe = regexp.MustCompile("^([a-zA-Z_0-9-]+)$")
|