Skip to content

Commit

Permalink
Make uppercase name and vendor invalid on init
Browse files Browse the repository at this point in the history
  • Loading branch information
tamorim committed May 16, 2017
1 parent 5468cff commit 8d98e9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/init/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const promptName = (): Bluebird<string> => {
inquirer.prompt({
name: 'name',
message: 'What\'s your VTEX app name?',
validate: s => /^[A-Za-z0-9\-_]+$/.test(s) || message,
validate: s => /^[a-z0-9\-_]+$/.test(s) || message,
filter: s => s.trim(),
}),
)
Expand All @@ -50,7 +50,7 @@ const promptVendor = (): Bluebird<string> => {
inquirer.prompt({
name: 'vendor',
message: 'What\'s your VTEX app vendor?',
validate: s => /^[A-Za-z0-9\-_]+$/.test(s) || message,
validate: s => /^[a-z0-9\-_]+$/.test(s) || message,
filter: s => s.trim(),
}),
)
Expand Down

0 comments on commit 8d98e9a

Please sign in to comment.