Skip to content

Commit f331544

Browse files
authored
allow underscore and capitals in Github token (#778)
1 parent 78a5cd6 commit f331544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etc/make_release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ def read_github_creds(github_token_file):
524524
Read the GitHub token from the specified file and return it as a string.
525525
"""
526526

527-
token_re = re.compile('^(?:Token - )?(?P<tok>[0-9a-f]{40}).*$')
527+
token_re = re.compile('^(?:Token - )?(?P<tok>\w{40}).*$')
528528
github_token = None
529529

530530
with open(github_token_file, 'rb') as token_stream:

0 commit comments

Comments
 (0)