Skip to content

Commit

Permalink
fixed Vertices.fromPath when parsing scientific notation
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Apr 26, 2015
1 parent bc88406 commit dae684d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geometry/Vertices.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var Vertices = {};
* @return {vertices} vertices
*/
Vertices.fromPath = function(path, body) {
var pathPattern = /L?\s*([\-\d\.]+)[\s,]*([\-\d\.]+)*/ig,
var pathPattern = /L?\s*([\-\d\.e]+)[\s,]*([\-\d\.e]+)*/ig,
points = [];

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

0 comments on commit dae684d

Please sign in to comment.