Skip to content

Commit

Permalink
refactor(react-native-cli): Be strict about API key format
Browse files Browse the repository at this point in the history
  • Loading branch information
bengourley committed Nov 25, 2020
1 parent 65741ac commit cc73e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native-cli/src/commands/ConfigureCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default async function run (argv: string[], opts: Record<string, unknown>
name: 'apiKey',
message: 'What is your Bugsnag API key?',
validate: value => {
return value.length > 1
return /[A-Fa-f0-9]{32}/.test(value)
? true
: 'API key is required. You can find it by going to https://app.bugsnag.com/settings/ > Projects'
}
Expand Down

0 comments on commit cc73e4c

Please sign in to comment.