MCPcopy Index your code
hub / github.com/wendux/fly / encode

Function encode

src/utils/utils.js:18–27  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

16 return str.replace(/(^\s*)|(\s*$)/g, '');
17 },
18 encode(val) {
19 return encodeURIComponent(val)
20 .replace(/%40/gi, '@')
21 .replace(/%3A/gi, ':')
22 .replace(/%24/g, '$')
23 .replace(/%2C/gi, ',')
24 .replace(/%20/g, '+')
25 .replace(/%5B/gi, '[')
26 .replace(/%5D/gi, ']');
27 },
28 formatParams(data) {
29 let str = "";
30 let first = true;

Callers 3

_encodeFunction · 0.85
_encodeFunction · 0.85
_encodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected