Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
20
const
stripBOM = (txt) => String(txt).replace(/^\uFEFF/,
""
);
21
22
/**
23
* @template [R=JsonValue]
Callers
1
parseJson
Function · 0.85
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected