mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge branch 'master' into develop
This commit is contained in:
commit
c51e0f76a2
1 changed files with 1 additions and 1 deletions
|
|
@ -458,7 +458,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]+)", re.IGNORECASE)
|
||||
try:
|
||||
return pattern.findall(file)[0]
|
||||
except IndexError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue