mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 05:55:10 +00:00
fix negative decimal convert
This commit is contained in:
@@ -19,7 +19,7 @@ export default class SerializablePath {
|
||||
|
||||
push = () => {
|
||||
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);
|
||||
if (!p) return this;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user