MCPcopy
hub / github.com/pmndrs/react-spring / getNumbers

Function getNumbers

packages/shared/src/stringInterpolation.ts:28–28  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

26// literal `var(--x)` text — yield `[]` rather than throwing on a null match.
27// See https://github.com/pmndrs/react-spring/issues/2327
28const getNumbers = (value: string) => value.match(numberRegex) ?? []
29
30/**
31 * Supports string shapes by extracting numbers so new values can be computed,

Callers 1

createStringInterpolatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…