MCPcopy Create free account
hub / github.com/Lucifier129/react-lite / escapeUserProvidedKey

Function escapeUserProvidedKey

examples/simple/react.js:4197–4199  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

4195
4196var userProvidedKeyEscapeRegex = /\/(?!\/)/g;
4197function escapeUserProvidedKey(text) {
4198 return ('' + text).replace(userProvidedKeyEscapeRegex, '//');
4199}
4200
4201/**
4202 * PooledClass representing the bookkeeping associated with performing a child

Callers 3

wrapUserProvidedKeyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected