mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-22 21:23:07 +03:00
fix python regexp, '_' was missing (#5791)
This commit is contained in:
parent
7745e99046
commit
044568c220
@ -58,7 +58,7 @@ def unpack(filename, destination):
|
||||
raise NotImplementedError('Unsupported archive type')
|
||||
|
||||
# a little trick to rename tool directories so they don't contain version number
|
||||
rename_to = re.match(r'^([a-z][^\-]*\-*)+', dirname).group(0).strip('-')
|
||||
rename_to = re.match(r'^([a-zA-Z_][^\-]*\-*)+', dirname).group(0).strip('-')
|
||||
if rename_to != dirname:
|
||||
print('Renaming {0} to {1}'.format(dirname, rename_to))
|
||||
if os.path.isdir(rename_to):
|
||||
|
Loading…
x
Reference in New Issue
Block a user