aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorShaun Jackman2015-03-31 10:23:31 -0700
committerMike McQuaid2015-03-31 18:53:26 +0100
commit6ca42964cb20a321be56180df9c568c1c016e84e (patch)
tree1e61221b160c14b464103a9c2297c4a75b7f632b /Library
parent1ad0de8660d0fe0326287059a7688acc42878a64 (diff)
downloadbrew-6ca42964cb20a321be56180df9c568c1c016e84e.tar.bz2
pathname: remove hyphen from BOTTLE_EXTNAME_RX
A hyphen is not a valid character in a Ruby symbol, and the bottle tag should be a valid Ruby symbol for its use in the bottle stanza. Closes Homebrew/homebrew#38235. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 33ccbfd1c..49adae2d1 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -7,7 +7,7 @@ require 'metafiles'
class Pathname
include MachO
- BOTTLE_EXTNAME_RX = /(\.[-a-z0-9_]+\.bottle\.(\d+\.)?tar\.gz)$/
+ BOTTLE_EXTNAME_RX = /(\.[a-z0-9_]+\.bottle\.(\d+\.)?tar\.gz)$/
def install *sources
sources.each do |src|