(v)
| 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)) |