mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 14:22:37 +01:00
fix(nuke): get version with dot
This commit is contained in:
parent
c5beb313a8
commit
460abbd74e
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,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