mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-12 18:47:45 +00:00
fix(ui): while creating secrets via UI validate validate characters (#9548)
This commit is contained in:
parent
31f9c79676
commit
0bb838b904
@ -81,7 +81,7 @@ export const SecretBuilderModal = ({ initialState, visible, onSubmit, onCancel }
|
||||
},
|
||||
{ whitespace: false },
|
||||
{ min: 1, max: 50 },
|
||||
{ pattern: /^[^\s\t${}\\,'"]+$/, message: 'This secret name is not allowed.' },
|
||||
{ pattern: /^[a-zA-Z_]+[a-zA-Z0-9_]*$/, message: 'Please start the secret name with a letter, followed by letters, digits, or underscores only.' },
|
||||
]}
|
||||
hasFeedback
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user