Skip to content
Snippets Groups Projects
Commit 4fc76a67 authored by Cyril Scetbon's avatar Cyril Scetbon Committed by Mike McQuaid
Browse files

Add Apache version style.

parent f25e7de4
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,7 @@ class Version
# e.g. foobar-4.5.1-1
# e.g. ruby-1.9.1-p243
m = /-((\d+\.)*\d\.\d+-(p|rc|RC)?\d+)$/.match(stem)
m = /-((\d+\.)*\d\.\d+-(p|rc|RC)?\d+)(?:[-._](?:bin|dist|stable|src|sources))?$/.match(stem)
return m.captures.first unless m.nil?
# e.g. lame-398-1
......
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