Skip to content

Commit

Permalink
Fixed paths removing. Fixes svg#413
Browse files Browse the repository at this point in the history
  • Loading branch information
GreLI committed Aug 13, 2015
1 parent 89fa5d5 commit a90ba46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/removeHiddenElems.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ exports.params = {
polygonEmptyPoints: true
};

var regValidPath = /M\s*(?:[-+]?(?:\d*\.\d+|\d+\.?)([eE][-+]?\d+)?(?![\de.])\s*,?\s*){2}\D*\d/i;
var regValidPath = /M\s*(?:[-+]?(?:\d*\.\d+|\d+(?:\.|(?!\.)))([eE][-+]?\d+)?(?!\d)\s*,?\s*){2}\D*\d/i;

/**
* Remove hidden elements with disabled rendering:
Expand Down
4 changes: 4 additions & 0 deletions test/plugins/removeHiddenElems.08.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a90ba46

Please sign in to comment.