MCPcopy
hub / github.com/webpack/webpack / isControlReference

Function isControlReference

lib/html/syntax.js:253–259  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

251 * @returns {boolean} is a C0/C1 control that is not ASCII whitespace
252 */
253const isControlReference = (code) =>
254 code === 0x0d ||
255 ((code <= 0x1f || (code >= 0x7f && code <= 0x9f)) &&
256 code !== CC_TAB &&
257 code !== CC_LF &&
258 code !== CC_FF &&
259 code !== CC_SPACE);
260
261/**
262 * Severity of a tokenizer-detected parse error. `"warning"` is recoverable

Callers 1

validateNumericReferenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected