aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-10-19 01:43:57 +0100
committerMax Howell2009-10-19 04:02:48 +0100
commit53d6f617d7246a40c8991653a6b166ec320880c2 (patch)
tree955873da79c12078c5ea9d84c43c13eec977c6eb /Library
parent06e16bff7d8a23122cdf7e70c07a356f14d631f2 (diff)
downloadbrew-53d6f617d7246a40c8991653a6b166ec320880c2.tar.bz2
Allow formula names with '+' in them
HFS+ handles the + fine. However the Ruby class name needs a s/+/x/g. I acknowledge that supporting + will make it harder to port to certain other filesystems. However that's your challenge! :D
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 4330b812f..6fa22feae 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -181,7 +181,7 @@ class Formula
def self.class_s name
#remove invalid characters and camelcase
- name.capitalize.gsub(/[-_\s]([a-zA-Z0-9])/) { $1.upcase }
+ name.capitalize.gsub(/[-_\s]([a-zA-Z0-9])/) { $1.upcase }.gsub('+', 'x')
end
def self.factory name