mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +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')
|
v: version number in string ('001')
|
||||||
|
|
||||||
"""
|
"""
|
||||||
pattern = re.compile(r"[\._]v([0-9]+)")
|
pattern = re.compile(r"[\._]v([0-9]+)", re.IGNORECASE)
|
||||||
try:
|
try:
|
||||||
return pattern.findall(file)[0]
|
return pattern.findall(file)[0]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue