Skip to content

Commit

Permalink
Add pattern source for awsS3BucketName in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericbarthelet committed Sep 30, 2020
1 parent e50b273 commit f764377
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/plugins/aws/provider/awsProvider.js
Expand Up @@ -431,6 +431,7 @@ class AwsProvider {
},
awsS3BucketName: {
type: 'string',
// pattern sourced from https://stackoverflow.com/questions/50480924/regex-for-s3-bucket-name
pattern:
'(?!^(\\d{1,3}\\.){3}\\d{1,3}$)(^(([a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9])\\.)*([a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9])$)',
minLength: 3,
Expand Down

0 comments on commit f764377

Please sign in to comment.