aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMartin Afanasjew2016-05-08 20:35:52 +0200
committerMartin Afanasjew2016-05-08 20:35:52 +0200
commit44af0d80e88035419f2324005c77e2444d083e7d (patch)
tree2c77a68012964fbc9226a0d8a759ade53d573b61 /Library
parent86fa42b36c98e482490ca347849e041ee9316011 (diff)
downloadbrew-44af0d80e88035419f2324005c77e2444d083e7d.tar.bz2
utils/bottles: fix Regexp escaping for Ruby 1.8
Make sure `Regexp.escape` gets a string as Ruby 1.8 is unable to convert the symbol to a string automatically. Related to changes from #168.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils/bottles.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/bottles.rb b/Library/Homebrew/utils/bottles.rb
index 6a05a7aeb..8447f2472 100644
--- a/Library/Homebrew/utils/bottles.rb
+++ b/Library/Homebrew/utils/bottles.rb
@@ -25,7 +25,7 @@ module Utils
end
def native_regex
- /(\.#{Regexp.escape(tag)}\.bottle\.(\d+\.)?tar\.gz)$/o
+ /(\.#{Regexp.escape(tag.to_s)}\.bottle\.(\d+\.)?tar\.gz)$/o
end
def receipt_path(bottle_file)