JavaDependency: stop ignoring trailing +

This is a follow up of Homebrew/homebrew#36376
This commit is contained in:
Xu Cheng 2015-02-23 21:54:09 +08:00
parent f7670c9106
commit bec41feb7e

View File

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