MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / fixedEncodeURIComponent

Function fixedEncodeURIComponent

src/utils/Url.js:133–137  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

131 return protocol + parts.join("/") + query;
132
133 function fixedEncodeURIComponent(str) {
134 return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
135 return "%" + c.charCodeAt(0).toString(16);
136 });
137 }
138 },
139 /**
140 * Gets pathname from url eg. gets '/foo/bar' from 'ftp://myhost.com/foo/bar'

Callers 1

safeFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected