mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 14:05:09 +00:00
fix negative decimal convert
This commit is contained in:
@@ -19,7 +19,7 @@ export default class SerializablePath {
|
|||||||
|
|
||||||
push = () => {
|
push = () => {
|
||||||
let p = Array.prototype.join.call(arguments, ' ')
|
let p = Array.prototype.join.call(arguments, ' ')
|
||||||
.replace(/(\.[\d]+)\-?(\.)/ig, '$1,$2') //-.3-.575 => -.3,.575
|
.replace(/(\.[\d]+)(\-?\.)/ig, '$1,$2') //-.3-.575 => -.3,-.575
|
||||||
.match(/[a-df-z]|[\-+]?(?:[\d\.]e[\-+]?|[^\s\-+,a-z])+/ig);
|
.match(/[a-df-z]|[\-+]?(?:[\d\.]e[\-+]?|[^\s\-+,a-z])+/ig);
|
||||||
if (!p) return this;
|
if (!p) return this;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user