perf: Check only isNaN instead of evaluating a string against a regex, so we can save time when people are animating values. Also re-use a single regex when one is needed.
perf: Check only isNaN instead of evaluating a string against a regex, so we can save time when people are animating values. Also re-use a single regex when one is needed.

trusktr/infamous,trusktr/infamous,trusktr/infamous