Skip to content

Commit

Permalink
Fixed error when parsing file and array that contains an array of boo…
Browse files Browse the repository at this point in the history
…leans.
  • Loading branch information
thomasHoneybee committed Jul 8, 2016
1 parent 5892738 commit 27bcefa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/cpptoml.h
Original file line number Diff line number Diff line change
Expand Up @@ -1777,7 +1777,7 @@ class parser
auto boolend
= std::find_if(it, end, [](char c)
{
return c == ' ' || c == '\t' || c == '#';
return c == ' ' || c == '\t' || c == '#' || c == ',' || c == ']';
});
std::string v{it, boolend};
it = boolend;
Expand Down Expand Up @@ -1908,6 +1908,8 @@ class parser
return parse_value_array<double>(it, end);
case parse_type::DATE:
return parse_value_array<datetime>(it, end);
case parse_type::BOOL:
return parse_value_array<bool>(it, end);
case parse_type::ARRAY:
return parse_object_array<array>(&parser::parse_array, '[', it,
end);
Expand Down

0 comments on commit 27bcefa

Please sign in to comment.