Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/lingodotdev/lingo.dev
/ normalize
Function
normalize
packages/cli/src/cli/loaders/xliff.spec.ts:5–7 ·
view source on GitHub ↗
(xml: string)
Source
from the content-addressed store, hash-verified
3
import
createXliffLoader from
"./xliff"
;
4
5
function
normalize(xml: string) {
6
return
xml.trim().replace(/\r?\n/g,
"\n"
);
7
}
8
9
describe(
"XLIFF loader"
, () => {
10
it(
"round-trips a simple file without changes"
,
async
() => {
Callers
1
xliff.spec.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected