MCPcopy
hub / github.com/axios/axios / tailIsPct3D

Function tailIsPct3D

lib/helpers/estimateDataURLDecodedBytes.js:49–53  ·  view source on GitHub ↗
(j)

Source from the content-addressed store, hash-verified

47 let idx = len - 1;
48
49 const tailIsPct3D = (j) =>
50 j >= 2 &&
51 body.charCodeAt(j - 2) === 37 && // '%'
52 body.charCodeAt(j - 1) === 51 && // '3'
53 (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100); // 'D' or 'd'
54
55 if (idx >= 0) {
56 if (body.charCodeAt(idx) === 61 /* '=' */) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected