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

Function quote

flask-api/test-client/rison.js:19–30  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

17 };
18
19 const quote = function(x) {
20 if (/^[-A-Za-z0-9~!*()_.',:@$\/]*$/.test(x))
21 return x;
22
23 return encodeURIComponent(x)
24 .replace(/%2C/g, ',')
25 .replace(/%3A/g, ':')
26 .replace(/%40/g, '@')
27 .replace(/%24/g, '$')
28 .replace(/%2F/g, '/')
29 .replace(/%20/g, '+');
30 };
31
32 var s = {
33 array : function(x) {

Callers 1

rison.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected