MCPcopy Create free account
hub / github.com/keepfool/vue-tutorials / encodeReserved

Function encodeReserved

06.Router/basic/js/vue-resource.js:586–593  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

584 }
585
586 function encodeReserved(str) {
587 return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) {
588 if (!/%[0-9A-Fa-f]/.test(part)) {
589 part = encodeURI(part);
590 }
591 return part;
592 }).join('');
593 }
594
595 function template (options) {
596

Callers 2

parseFunction · 0.70
encodeValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected