Skip to content

Commit

Permalink
Allow underscores in GitLab tokens (#272)
Browse files Browse the repository at this point in the history
Closes #271
  • Loading branch information
ataylorme committed Sep 12, 2019
1 parent 1768615 commit 36b112c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/API/GitLab/GitLabAPITrait.php
Expand Up @@ -82,7 +82,7 @@ public function credentialRequests()
$gitlabTokenRequest = (new CredentialRequest($this->tokenKey()))
->setInstructions($instructions)
->setPrompt("Enter GitLab personal access token: ")
->setValidateRegEx('#^[0-9a-zA-Z\-]{20}$#')
->setValidateRegEx('#^[0-9a-zA-Z\-_]{20}$#')
->setValidationErrorMessage($validation_message)
->setValidationCallbackErrorMessage($could_not_authorize)
->setValidateFn(
Expand Down

0 comments on commit 36b112c

Please sign in to comment.