Fix dasharray grammar

This commit is contained in:
Artem Pavlenko 2024-04-22 15:22:19 +01:00
parent 6e44fb052c
commit e1d7d3deb5

View file

@ -70,7 +70,7 @@ bool parse_dasharray(std::string const& value, dash_array& dash)
std::vector<double> buf;
auto first = value.begin();
auto last = value.end();
bool r = x3::phrase_parse(first, last, (double_ % no_skip[char_(", ")] | "none"), space, buf);
bool r = x3::phrase_parse(first, last, (double_ % -char_(',') | "none"), space, buf);
if (r && first == last)
{
return setup_dashes(buf, dash);