Skip to content

Commit

Permalink
fix: Update token regex (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaledgarbaya authored May 3, 2019
1 parent 7860bdb commit f6635af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cmds/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function login () {
type: 'input',
name: 'cmaToken',
message: 'Paste your token here:',
validate: (val) => /^[a-f0-9]{64}$/.test(val.trim())
validate: (val) => /^[a-zA-Z0-9_-]{43,64}$/i.test(val.trim()) // token is 43 to 64 cahracters and accept lower/uppercase caharacter plus `-` and `_`
}
])

Expand Down

0 comments on commit f6635af

Please sign in to comment.