diff --git a/src/Interpolation.js b/src/Interpolation.js index eeda6e1..89d31cb 100644 --- a/src/Interpolation.js +++ b/src/Interpolation.js @@ -172,7 +172,7 @@ function colorToRgba(input: string): string { return `rgba(${r}, ${g}, ${b}, ${a})`; } -var stringShapeRegex = /[0-9\.-]+/g; +var stringShapeRegex = /([0-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g; /** * Supports string shapes by extracting numbers so new values can be computed,