MCPcopy Index your code
hub / github.com/nodejs/node / escapeBraces

Function escapeBraces

deps/minimatch/index.js:96–98  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

94 return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
95 }
96 function escapeBraces(str) {
97 return str.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod);
98 }
99 function unescapeBraces(str) {
100 return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
101 }

Callers 1

expandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected