MCPcopy Create free account
hub / github.com/Azure/powershell / escapeData

Function escapeData

lib/index.js:85–90  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

83 }
84}
85function escapeData(s) {
86 return utils_1.toCommandValue(s)
87 .replace(/%/g, '%25')
88 .replace(/\r/g, '%0D')
89 .replace(/\n/g, '%0A');
90}
91function escapeProperty(s) {
92 return utils_1.toCommandValue(s)
93 .replace(/%/g, '%25')

Callers 1

toStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…