diff --git a/toml.py b/toml.py index c32cc50..0f3a8dd 100644 --- a/toml.py +++ b/toml.py @@ -670,7 +670,7 @@ def _load_array(a, _dict): atype = None retval = [] a = a.strip() - if '[' not in a[1:-1]: + if '[' not in a[1:-1] or "" != a[1:-1].split('[')[0].strip(): strarray = False tmpa = a[1:-1].strip() if tmpa != '' and (tmpa[0] == '"' or tmpa[0] == "'"):