fix(global): get version didnt count with .v001

This commit is contained in:
Jakub Jezek 2019-07-29 09:24:19 +02:00
parent 3b80a389c5
commit afd1c3447a

View file

@ -28,7 +28,7 @@ def get_version_from_path(file):
v: version number in string ('001')
"""
pattern = re.compile(r"_v([0-9]*)")
pattern = re.compile(r"v([0-9]*)")
try:
v = pattern.findall(file)[0]
return v