mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
ignore case in scene version parsing
This commit is contained in:
parent
8eb5f2ab9a
commit
09df26b0ec
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