Merge pull request #379 from ThomasBrierley/issue_378

Fixed pathValues exponential notation parsing regression
master
Dmitry Baranovskiy 2017-01-18 11:15:00 +11:00 committed by GitHub
commit ce1c2a3d04
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ var has = "hasOwnProperty",
hsrg = {hs: 1, rg: 1},
pathCommand = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/ig,
tCommand = /([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/ig,
pathValues = /(-?\d*\.?\d*(?:e[\-+]?\\d+)?)[\s]*,?[\s]*/ig,
pathValues = /(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\s]*,?[\s]*/ig,
idgen = 0,
idprefix = "S" + (+new Date).toString(36),
ID = function (el) {