MCPcopy
hub / github.com/webpack/webpack / stripBOM

Function stripBOM

lib/util/parseJson.js:20–20  ·  view source on GitHub ↗
(txt)

Source from the content-addressed store, hash-verified

18 * @returns {string} text without BOM
19 */
20const stripBOM = (txt) => String(txt).replace(/^\uFEFF/, "");
21
22/**
23 * @template [R=JsonValue]

Callers 1

parseJsonFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected