MCPcopy Create free account
hub / github.com/aliyun/openapi-core-nodejs-sdk / encode

Function encode

lib/rpc.js:38–46  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

36}
37
38function encode(str) {
39 var result = encodeURIComponent(str);
40
41 return result.replace(/!/g, '%21')
42 .replace(/'/g, '%27')
43 .replace(/\(/g, '%28')
44 .replace(/\)/g, '%29')
45 .replace(/\*/g, '%2A');
46}
47
48function replaceRepeatList(target, key, repeat) {
49 for (var i = 0; i < repeat.length; i++) {

Callers 3

normalizeFunction · 0.85
requestMethod · 0.85
rpc.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected