Skip to content
Snippets Groups Projects
Commit 21e9d5c5 authored by Mark Miller's avatar Mark Miller
Browse files

generalize one of the cases to handle many more kinds of formatting options

parent c1be1a36
No related branches found
No related tags found
No related merge requests found
...@@ -209,8 +209,8 @@ def parse_version_offset(path): ...@@ -209,8 +209,8 @@ def parse_version_offset(path):
# e.g. foobar-4.5.1 # e.g. foobar-4.5.1
(r'-((\d+\.)*\d+)$', stem), (r'-((\d+\.)*\d+)$', stem),
# e.g. foobar-4.5.1b # e.g. foobar-4.5.1b, foobar4.5RC, foobar.v4.5.1b
(r'-((\d+\.)*\d+\-?([a-z]|rc|RC|tp|TP)\d*)$', stem), (r'[-._]?v?((\d+\.)*\d+[-._]?([a-z]|rc|RC|tp|TP?)\d*)$', stem),
# e.g. foobar-4.5.0-beta1, or foobar-4.50-beta # e.g. foobar-4.5.0-beta1, or foobar-4.50-beta
(r'-((\d+\.)*\d+-beta(\d+)?)$', stem), (r'-((\d+\.)*\d+-beta(\d+)?)$', stem),
......
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