MCPcopy Index your code
hub / github.com/nodejs/node / replaceWindowsLineEndings

Function replaceWindowsLineEndings

test/common/assertSnapshot.js:70–72  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

68// Replaces Windows line endings with posix line endings for unified snapshots
69// across platforms.
70function replaceWindowsLineEndings(str) {
71 return str.replace(windowNewlineRegexp, '');
72}
73
74// Replaces all Windows path separators with posix separators for unified snapshots
75// across platforms.

Callers 1

assertSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…