fixing regex to be more flexable

This commit is contained in:
alwaysjolley 2019-06-19 09:46:44 -04:00
parent 029efeb03a
commit 56917614a2
1 changed files with 2 additions and 2 deletions

View File

@ -69,14 +69,14 @@ class VaultSourcePlugin(SourcePlugin):
'name': 'vaultPath', 'name': 'vaultPath',
'type': 'str', 'type': 'str',
'required': True, 'required': True,
'validation': '^([a-zA-Z0-9_-]+/?)+$', 'validation': '^([a-zA-Z0-9._-]+/?)+$',
'helpMessage': 'Must be a valid Vault secrets path' 'helpMessage': 'Must be a valid Vault secrets path'
}, },
{ {
'name': 'objectName', 'name': 'objectName',
'type': 'str', 'type': 'str',
'required': True, 'required': True,
'validation': '[0-9a-zA-Z:_-]+', 'validation': '[0-9a-zA-Z.:_-]+',
'helpMessage': 'Object Name to search' 'helpMessage': 'Object Name to search'
}, },
] ]