MCPcopy Create free account
hub / github.com/decaporg/decap-cms / decodeQueryPart

Function decodeQueryPart

packages/decap-cms-lib-util/src/unsentRequest.js:37–39  ·  view source on GitHub ↗
(part)

Source from the content-addressed store, hash-verified

35// for spaces. `decodeURIComponent` keeps `+` as is, which would then be sent back
36// as `%2B`, so turn it into a space first. A literal plus always arrives as `%2B`.
37function decodeQueryPart(part) {
38 return decodeURIComponent(part.replace(/\+/g, ' '));
39}
40
41function decodeParams(paramsString) {
42 return List(paramsString.split('&'))

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected