Skip to content
Snippets Groups Projects
Commit f5a54ab3 authored by Tim D. Smith's avatar Tim D. Smith
Browse files

BottleVersion: add imap-uw style versions

parent 6eabbed4
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,10 @@ class BottleVersion < Version
m = /-(\d{8})/.match(stem)
return m.captures.first unless m.nil?
# e.g. 2007f from imap-uw-2007f.yosemite.bottle.tar.gz
m = /-(\d+[a-z])/.match(stem)
return m.captures.first unless m.nil?
super
end
end
......@@ -60,4 +60,9 @@ class BottleVersionParsingTests < Homebrew::TestCase
assert_version_detected '13-2.9.19',
'libpano-13-2.9.19_1.yosemite.bottle.tar.gz'
end
def test_imapuw_style
assert_version_detected '2007f',
'imap-uw-2007f.yosemite.bottle.tar.gz'
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment