mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
Merge pull request #1990 from jrsndl/bugfix/nuke_last_version_from_path
This commit is contained in:
commit
fcd3df0615
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ def get_version_from_path(file):
|
|||
"""
|
||||
pattern = re.compile(r"[\._]v([0-9]+)", re.IGNORECASE)
|
||||
try:
|
||||
return pattern.findall(file)[0]
|
||||
return pattern.findall(file)[-1]
|
||||
except IndexError:
|
||||
log.error(
|
||||
"templates:get_version_from_workfile:"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue