Skip to content

Commit

Permalink
fix: correct function resource name validation (#6570)
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardfoyle authored Feb 12, 2021
1 parent 2977c6a commit 5737b46
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ function generalQuestions(context: any): object[] {
message: 'Provide an AWS Lambda function name:',
validate: context.amplify.inputValidation({
operator: 'regex',
value: '^[a-zA-Z0-9._-]+$',
onErrorMsg: 'You can use the following characters: a-z A-Z 0-9 . - _',
value: '^[a-zA-Z0-9]+$',
onErrorMsg: 'You can use the following characters: a-z A-Z 0-9',
required: true,
}),
default: () => {
Expand Down

0 comments on commit 5737b46

Please sign in to comment.