Fix bug in URL regex.
This commit is contained in:
@@ -210,7 +210,7 @@ def parse_version_offset(path):
|
|||||||
(r'-((\d+\.)*\d+)$', stem),
|
(r'-((\d+\.)*\d+)$', stem),
|
||||||
|
|
||||||
# e.g. foobar-4.5.1b, foobar4.5RC, foobar.v4.5.1b
|
# e.g. foobar-4.5.1b, foobar4.5RC, foobar.v4.5.1b
|
||||||
(r'[-._]?v?((\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),
|
||||||
|
Reference in New Issue
Block a user