MCPcopy Create free account
hub / github.com/nodejs/node / isHexCharByte

Function isHexCharByte

deps/undici/src/lib/web/fetch/data-url.js:153–156  ·  view source on GitHub ↗

* @param {number} byte

(byte)

Source from the content-addressed store, hash-verified

151 * @param {number} byte
152 */
153function isHexCharByte (byte) {
154 // 0-9 A-F a-f
155 return (byte >= 0x30 && byte <= 0x39) || (byte >= 0x41 && byte <= 0x46) || (byte >= 0x61 && byte <= 0x66)
156}
157
158/**
159 * @param {number} byte

Callers 1

percentDecodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected