MCPcopy Create free account
hub / github.com/cloudinary/cloudinary_npm / replaceAllSubstrings

Function replaceAllSubstrings

lib/utils/index.js:313–315  ·  view source on GitHub ↗
(string, search, replacement = '')

Source from the content-addressed store, hash-verified

311}
312
313function replaceAllSubstrings(string, search, replacement = '') {
314 return string.split(search).join(replacement);
315}
316
317function encodeCurlyBraces(input) {
318 return replaceAllSubstrings(replaceAllSubstrings(input, '(', '%28'), ')', '%29');

Callers 1

encodeCurlyBracesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected