The SVG1.1 specification defines a sequence of arc arguments as: 'number', 'number', 'number', 'flag', 'flag', 'coordinate pair'.
So you should take care of flags separately because a valid sequence of arguments may be 'a3.04 3.04 0 00.123-.463' where
'0.123' are two arguments, '0' is the flag and '.123' is the first number in the coordinate pair.
This patch solves T85687 and hopefully other SVG import bugs.