mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
check for full match instead of simple match
This commit is contained in:
parent
5d0ef4f89f
commit
bc09f31ddb
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ def validate_value_by_regexes(value, in_list):
|
|||
|
||||
regexes = compile_list_of_regexes(in_list)
|
||||
for regex in regexes:
|
||||
if re.match(regex, value):
|
||||
if re.fullmatch(regex, value):
|
||||
return 1
|
||||
return -1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue