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
commit5649ca637424cdd6649f4dd43db7b6ada4a00706 (patch)
tree7b1b4bf647c8498d689dd923011f8a37e1ab2818 /Library
parent7f8258f0bd09397c2709b2ead1ef4480fea4b205 (diff)
downloadhomebrew-5649ca637424cdd6649f4dd43db7b6ada4a00706.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