mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-03 03:58:01 +00:00
Add '.' to GenericNameRegex; it cannot appear as the first or last
character. This allows its usage in a number of extra path-based variables. Ping #244
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
// Helper which returns a generic regex string for creating endpoint patterns
|
||||
// that are identified by the given name in the backends
|
||||
func GenericNameRegex(name string) string {
|
||||
return fmt.Sprintf("(?P<%s>\\w[\\w-]+\\w)", name)
|
||||
return fmt.Sprintf("(?P<%s>\\w[\\w-.]+\\w)", name)
|
||||
}
|
||||
|
||||
// PathAppend is a helper for appending lists of paths into a single
|
||||
|
||||
Reference in New Issue
Block a user