mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix(global): get version didnt count with .v001
This commit is contained in:
parent
3b80a389c5
commit
afd1c3447a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue