(x)
| 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) { |