Skip to content

Commit

Permalink
Updated the GitHub regex to support their new personal access token f…
Browse files Browse the repository at this point in the history
…ormat.
  • Loading branch information
Adam Weingarten committed Apr 9, 2021
1 parent 0ae99c3 commit abc05e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/API/GitHub/GitHubAPITrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function credentialRequests()
$githubTokenRequest = (new CredentialRequest($this->tokenKey()))
->setInstructions($instructions)
->setPrompt($prompt)
->setValidateRegEx('#^[0-9a-fA-F]{40}$#')
->setValidateRegEx('#^[0-9a-zA-Z_]{40}$#')
->setValidationErrorMessage($validation_message)
->setValidationCallbackErrorMessage($could_not_authorize)
->setValidateFn(
Expand Down

0 comments on commit abc05e6

Please sign in to comment.