JavaDependency: stop ignoring trailing +
This is a follow up of Homebrew/homebrew#36376
This commit is contained in:
		
							parent
							
								
									f7670c9106
								
							
						
					
					
						commit
						bec41feb7e
					
				@ -142,8 +142,7 @@ class JavaDependency < Requirement
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def initialize(tags)
 | 
			
		||||
    # ignore trailing +
 | 
			
		||||
    @version = tags.shift.sub(/\+$/, "") if /(\d\.)+\d/ === tags.first
 | 
			
		||||
    @version = tags.shift if /(\d\.)+\d/ === tags.first
 | 
			
		||||
    super
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user