mirror of
				https://github.com/esp8266/Arduino.git
				synced 2025-10-27 05:56:11 +03:00 
			
		
		
		
	fix python regexp, '_' was missing (#5791)
This commit is contained in:
		| @@ -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): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user