MCPcopy
hub / github.com/webpack/webpack / unescape

Function unescape

test/html5lib.spectest.js:46–49  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

44const BATCH = 400;
45
46const unescape = (s) =>
47 s.replace(/\\u([0-9A-Fa-f]{4})/g, (_, h) =>
48 String.fromCharCode(Number.parseInt(h, 16))
49 );
50
51/**
52 * @returns {{ id: string, input: string }[]} every Data-state tokenizer input

Callers 1

loadTokenizerCasesFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected