mirror of
				https://git.mirrors.martin98.com/https://github.com/actions/setup-python
				synced 2025-10-31 16:11:09 +08:00 
			
		
		
		
	Fix output for prerelease version of poetry (#409)
This commit is contained in:
		
							parent
							
								
									397252c582
								
							
						
					
					
						commit
						3f82819745
					
				
							
								
								
									
										2
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @ -63920,7 +63920,7 @@ class PoetryCache extends cache_distributor_1.default { | ||||
|             const lines = stdout.trim().split('\n'); | ||||
|             const config = {}; | ||||
|             for (let line of lines) { | ||||
|                 line = line.replace(/#.*$/, ''); | ||||
|                 line = line.replace(/#.*$/gm, ''); | ||||
|                 const [key, value] = line.split('=').map(part => part.trim()); | ||||
|                 config[key] = JSON.parse(value); | ||||
|             } | ||||
|  | ||||
| @ -58,7 +58,7 @@ class PoetryCache extends CacheDistributor { | ||||
|     const config: any = {}; | ||||
| 
 | ||||
|     for (let line of lines) { | ||||
|       line = line.replace(/#.*$/, ''); | ||||
|       line = line.replace(/#.*$/gm, ''); | ||||
| 
 | ||||
|       const [key, value] = line.split('=').map(part => part.trim()); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dmitry Shibanov
						Dmitry Shibanov