MewPurPur / GodSVG

A vector graphics application for structured SVG editing, available on all major desktop platforms. Currently in late alpha.
https://godsvg.com
MIT License
1.23k stars 57 forks source link

Invalid pathdata gets parsed #812

Closed MewPurPur closed 2 months ago

MewPurPur commented 2 months ago

"M4 - 2 4 4 4z" shouldn't be parsed, but PathdataParser treats the lone - like a 0. This might be an issue in TransformListParser too.

There are tests for this in the editor scripts folder, which will make solving this a little easier. This should also be added to these tests.