Fix overzealous regex
This commit is contained in:
parent
105f77745c
commit
152490b7b0
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user