fix negative decimal convert

This commit is contained in:
Horcrux
2016-05-03 12:02:09 +08:00
parent 6816afe22a
commit f62ea55a78

View File

@@ -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;