FIX SVGPath should accept 1.19.30 (equiv 1.19,.30) compacted values list (#297)

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
This commit is contained in:
Baptiste Pillot 2021-03-27 09:42:23 +01:00 committed by GitHub
parent f37a6610d6
commit f9046e0e2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23460,6 +23460,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
}
$paths = array();
$d = preg_replace('/([0-9ACHLMQSTVZ])([\-\+])/si', '\\1 \\2', $d);
$d = preg_replace('/(\.[0-9]+)(\.)/s', '\\1 \\2', $d);
preg_match_all('/([ACHLMQSTVZ])[\s]*([^ACHLMQSTVZ\"]*)/si', $d, $paths, PREG_SET_ORDER);
$x = 0;
$y = 0;