Skip to content

Commit

Permalink
fix: Update GitHub personal access token validation pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
baumandm committed Feb 16, 2022
1 parent b7cbef6 commit 23a482f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const GitHubPersonalAccessTokenInput = ({ name, defaultValue, form }) => {
placeholder="GitHub Personal Access Token"
type={show ? 'text' : 'password'}
defaultValue={defaultValue}
{...register(name, { required: true, maxLength: 40, pattern: /^[A-Za-z0-9]{40}$/ })}
{...register(name, { required: true, maxLength: 40, pattern: /^[A-Za-z0-9_]{40}$/ })}
errorBorderColor="red.300"
onChange={(e) => (e.target.value = e.target.value.trim())}
/>
Expand Down

0 comments on commit 23a482f

Please # to comment.