check for full match instead of simple match

This commit is contained in:
iLLiCiTiT 2021-03-30 10:48:31 +02:00
parent 5d0ef4f89f
commit bc09f31ddb

View file

@ -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