Merge pull request #15405 from Bo98/cleanup-version-fix
cleanup: fix version error for cache items without a version
This commit is contained in:
		
						commit
						fff93a8781
					
				| @ -109,7 +109,7 @@ module Homebrew | ||||
|         version ||= basename_str[/\A.*(?:--.*?)*--(.*?)#{Regexp.escape(pathname.extname)}\Z/, 1] | ||||
|         version ||= basename_str[/\A.*--?(.*?)#{Regexp.escape(pathname.extname)}\Z/, 1] | ||||
| 
 | ||||
|         return false unless version | ||||
|         return false if version.blank? | ||||
| 
 | ||||
|         version = Version.new(version) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Bo Anderson
						Bo Anderson