Skip to content
Snippets Groups Projects
Commit b7c0c53f authored by Jack Nagel's avatar Jack Nagel
Browse files

VersionElement: attempt most likely match first

parent 42da1295
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,9 @@ class VersionElement
def initialize elem
elem = elem.to_s.downcase
@elem = case elem
when /\d+/ then elem.to_i
when 'a', 'alpha' then 'alpha'
when 'b', 'beta' then 'beta'
when /\d+/ then elem.to_i
else elem
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