MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / escapeUserProvidedKey

Function escapeUserProvidedKey

code/new-context-api/public/app.js:18364–18366  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

18362
18363var userProvidedKeyEscapeRegex = /\/+/g;
18364function escapeUserProvidedKey(text) {
18365 return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
18366}
18367
18368var POOL_SIZE = 10;
18369var traverseContextPool = [];

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected