fix(ui): while creating secrets via UI validate validate characters (#9548)

This commit is contained in:
gaurav2733 2024-01-02 21:45:55 +05:30 committed by GitHub
parent 31f9c79676
commit 0bb838b904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
>