Skip to content

Commit dae684d

Browse files
committed
fixed Vertices.fromPath when parsing scientific notation
1 parent bc88406 commit dae684d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/geometry/Vertices.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var Vertices = {};
5757
* @return {vertices} vertices
5858
*/
5959
Vertices.fromPath = function(path, body) {
60-
var pathPattern = /L?\s*([\-\d\.]+)[\s,]*([\-\d\.]+)*/ig,
60+
var pathPattern = /L?\s*([\-\d\.e]+)[\s,]*([\-\d\.e]+)*/ig,
6161
points = [];
6262

6363
path.replace(pathPattern, function(match, x, y) {

0 commit comments

Comments
 (0)