diff options
| author | Martin Afanasjew | 2016-05-08 20:35:52 +0200 |
|---|---|---|
| committer | Martin Afanasjew | 2016-05-08 20:35:52 +0200 |
| commit | 44af0d80e88035419f2324005c77e2444d083e7d (patch) | |
| tree | 2c77a68012964fbc9226a0d8a759ade53d573b61 /Library | |
| parent | 86fa42b36c98e482490ca347849e041ee9316011 (diff) | |
| download | brew-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.rb | 2 |
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) |
