Skip to content

Commit ace654a

Browse files
committed
[animated] Support all double formats in string interpolation
1 parent dbcada4 commit ace654a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Animated/src/nodes/AnimatedInterpolation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function colorToRgba(input: string): string {
181181
return `rgba(${r}, ${g}, ${b}, ${a})`;
182182
}
183183

184-
const stringShapeRegex = /[+-]?(NaN|Infinity|\d+\.?\d+?([eE][+-]?\d+)?|\.\d+([eE][+-]?\d+)?|(0[xX][0-9A-Fa-f]+\.?|0[xX][0-9A-Fa-f]*\.[0-9A-Fa-f]+)[pP][+-]?\d+)/g;
184+
const stringShapeRegex = /[+-]?(NaN|Infinity|\d+\.?\d*([eE][+-]?\d+)?|\.\d+([eE][+-]?\d+)?|(0[xX][0-9A-Fa-f]+\.?|0[xX][0-9A-Fa-f]*\.[0-9A-Fa-f]+)[pP][+-]?\d+)/g;
185185

186186
/**
187187
* Supports string shapes by extracting numbers so new values can be computed,

0 commit comments

Comments
 (0)