Skip to content

Commit 044568c

Browse files
d-a-vdevyte
authored andcommitted
fix python regexp, '_' was missing (#5791)
1 parent 7745e99 commit 044568c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/get.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def unpack(filename, destination):
5858
raise NotImplementedError('Unsupported archive type')
5959

6060
# a little trick to rename tool directories so they don't contain version number
61-
rename_to = re.match(r'^([a-z][^\-]*\-*)+', dirname).group(0).strip('-')
61+
rename_to = re.match(r'^([a-zA-Z_][^\-]*\-*)+', dirname).group(0).strip('-')
6262
if rename_to != dirname:
6363
print('Renaming {0} to {1}'.format(dirname, rename_to))
6464
if os.path.isdir(rename_to):

0 commit comments

Comments
 (0)