This commit is contained in:
loganma 2022-11-30 19:50:57 +02:00 committed by GitHub
commit 7899a22cdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ def parse_array(array_string):
array_string = array_string[1:]
elif array_string[0] == "'":
# Start of quoted value, find its end
match = re.search(r"[^\\]'", array_string)
match = re.search(r"[^\\]'(?:,|])", array_string)
if match is None:
raise ValueError('Missing closing quote: "%s"' % array_string)
values.append(array_string[1 : match.start() + 1])