JavaDependency: ignore trailing + in the version

This commit is contained in:
Baptiste Fontaine 2015-01-30 10:20:49 +01:00 committed by Mike McQuaid
parent e298f09ab6
commit 40447c239d

View File

@ -126,7 +126,8 @@ class JavaDependency < Requirement
satisfy { java_version }
def initialize(tags)
@version = tags.shift if /(\d\.)+\d/ === tags.first
# ignore trailing +
@version = tags.shift.sub(/\+$/, "") if /(\d\.)+\d/ === tags.first
super
end