diff options
Diffstat (limited to 'Library/Homebrew/extend/string.rb')
| -rw-r--r-- | Library/Homebrew/extend/string.rb | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/string.rb b/Library/Homebrew/extend/string.rb index 0246f0c90..3238f97df 100644 --- a/Library/Homebrew/extend/string.rb +++ b/Library/Homebrew/extend/string.rb @@ -22,6 +22,8 @@ module StringInreplaceExtension    # Removes variable assignments completely.    def remove_make_var! flags +    # Next line is for Ruby 1.9.x compatibility +    flags = [flags] unless flags.kind_of? Array      flags.each do |flag|        # Also remove trailing \n, if present.        gsub! Regexp.new("^#{flag}[ \\t]*=(.*)$\n?"), ""  | 
