Skip to content
Snippets Groups Projects
Commit 28a20b70 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

icu4c: add bottle regex.

parent 3f0a409e
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,8 @@ class BottleVersion < Version
return m.captures.first unless m.nil?
# e.g. ssh-copy-id-6.2p2.bottle.tar.gz
m = /(\d\.(\d)+(p(\d)+)?)/.match(stem)
# e.g. icu4c-52.1.bottle.tar.gz
m = /(\d+\.(\d)+(p(\d)+)?)/.match(stem)
return m.captures.first unless m.nil?
super
......
......@@ -15,4 +15,9 @@ class BottleVersionParsingTests < Test::Unit::TestCase
assert_version_detected '6.2p2',
'/usr/local/ssh-copy-id-6.2p2.mountain_lion.bottle.tar.gz'
end
def test_icu4c_style
assert_version_detected '52.1',
'/usr/local/icu4c-52.1.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