MCPcopy Create free account
hub / github.com/bendc/animateplus / sanitize

Function sanitize

animateplus.js:214–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212 value.match(extractRegExp).map(Number);
213
214const sanitize = values =>
215 values.map(value => {
216 const string = String(value);
217 return string.startsWith("#") ? rgba(string) : string;
218 });
219
220const addPropertyKeyframes = (property, values) => {
221 const animatable = sanitize(values);

Callers 1

addPropertyKeyframesFunction · 0.85

Calls 1

rgbaFunction · 0.85

Tested by

no test coverage detected