MCPcopy Create free account
hub / github.com/Moli-X/Resources / uriencode

Function uriencode

Script/Parser.js:3052–3058  ·  view source on GitHub ↗
(u, urisafe)

Source from the content-addressed store, hash-verified

3050 : btoa(utob(String(u)));
3051 }
3052 var uriencode = function (u, urisafe) {
3053 return !urisafe
3054 ? _encode(u)
3055 : _encode(String(u)).replace(/[+\/]/g, function (m0) {
3056 return m0 == '+' ? '-' : '_';
3057 }).replace(/=/g, '');
3058 };
3059 var encodeURI = function (u) { return uriencode(u, true) };
3060 // decoder stuff
3061 var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;

Callers 1

encodeURIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected