Fix overzealous regex

This commit is contained in:
Jack Nagel 2014-05-26 21:30:56 -05:00
parent 105f77745c
commit 152490b7b0

View File

@ -30,7 +30,7 @@ class BottleVersion < Version
return m.captures.first unless m.nil? return m.captures.first unless m.nil?
# e.g. 20120731 from fontforge-20120731.mavericks.bottle.tar.gz # e.g. 20120731 from fontforge-20120731.mavericks.bottle.tar.gz
m = /-(\d+)/.match(stem) m = /-(\d{8})/.match(stem)
return m.captures.first unless m.nil? return m.captures.first unless m.nil?
super super