Skip to content

Commit

Permalink
Merge pull request #33 from oluckyman/scientific-numbers
Browse files Browse the repository at this point in the history
Handle numbers in scientific notation
  • Loading branch information
pbeshai authored Feb 28, 2020
2 parents 39cf5a8 + e539d17 commit 510747c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/interpolatePath.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import splitCurve from './split';

const commandTokenRegex = /[MLCSTQAHVmlcstqahv]|[\d.-]+/g;
const commandTokenRegex = /[MLCSTQAHVmlcstqahv]|-?[\d.e+-]+/g;
/**
* List of params for each command type in a path `d` attribute
*/
Expand Down
15 changes: 15 additions & 0 deletions test/interpolatePath-test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 510747c

Please sign in to comment.