JavaDependency: ignore trailing + in the version
This commit is contained in:
		
							parent
							
								
									e298f09ab6
								
							
						
					
					
						commit
						40447c239d
					
				@ -126,7 +126,8 @@ class JavaDependency < Requirement
 | 
				
			|||||||
  satisfy { java_version }
 | 
					  satisfy { java_version }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def initialize(tags)
 | 
					  def initialize(tags)
 | 
				
			||||||
    @version = tags.shift if /(\d\.)+\d/ === tags.first
 | 
					    # ignore trailing +
 | 
				
			||||||
 | 
					    @version = tags.shift.sub(/\+$/, "") if /(\d\.)+\d/ === tags.first
 | 
				
			||||||
    super
 | 
					    super
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user