aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-02-23 21:54:09 +0800
committerXu Cheng2015-02-24 02:36:27 +0800
commit68a0e02c6d0f0ba74b63048f3bcd3ec519a2e963 (patch)
tree498732334a38be1331471c0a5810eae0c85bd289 /Library
parent28ae0580ee12f1df5cc6fc5e51774accff7e3f40 (diff)
downloadhomebrew-68a0e02c6d0f0ba74b63048f3bcd3ec519a2e963.tar.bz2
JavaDependency: stop ignoring trailing +
This is a follow up of #36376
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/requirements.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb
index 16e520d30..811c713af 100644
--- a/Library/Homebrew/requirements.rb
+++ b/Library/Homebrew/requirements.rb
@@ -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