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

Function qsUnescape

lib/querystring.js:131–137  ·  view source on GitHub ↗

* @param {string} s * @param {boolean} decodeSpaces * @returns {string}

(s, decodeSpaces)

Source from the content-addressed store, hash-verified

129 * @returns {string}
130 */
131function qsUnescape(s, decodeSpaces) {
132 try {
133 return decodeURIComponent(s);
134 } catch {
135 return QueryString.unescapeBuffer(s, decodeSpaces).toString();
136 }
137}
138
139
140// These characters do not need escaping when generating query strings:

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…