Skip to content

anim-format (runtime format) / slotGlobReplace

Function: slotGlobReplace() ​

ts
function slotGlobReplace(
   match, 
   to, 
   name
): string | null;

name renamed by a rule: null when match does not match or to has more *s than match caught. No to = the name itself.

Parameters ​

ParameterType
matchstring | undefined
tostring | undefined
namestring

Returns ​

string | null

HereSplash — 2D animation for the web