MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / enc

Function enc

flask-api/test-client/rison.js:11–17  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

9 var next_id = new RegExp(idrx, 'g');
10
11 var enc = function(v) {
12 if (v && typeof v.toJSON === 'function')
13 v = v.toJSON();
14 var fn = s[typeof v];
15 if (fn)
16 return fn(v);
17 };
18
19 const quote = function(x) {
20 if (/^[-A-Za-z0-9~!*()_.',:@$\/]*$/.test(x))

Callers 1

rison.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected