MCPcopy
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

3import createXliffLoader from "./xliff";
4
5function normalize(xml: string) {
6 return xml.trim().replace(/\r?\n/g, "\n");
7}
8
9describe("XLIFF loader", () => {
10 it("round-trips a simple file without changes", async () => {

Callers 1

xliff.spec.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected