aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/requirements.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb
index 6b72d9804..6a4b4e87a 100644
--- a/Library/Homebrew/requirements.rb
+++ b/Library/Homebrew/requirements.rb
@@ -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