const normalizeLineEndings = (str: string, normalized: string = '\r\n') =>
str.replace(/\r?\n/g, normalized);
Normalize line endings
Normalizes line endings in a string.
0 Comments
Add Comment
Log in to add a comment
const normalizeLineEndings = (str: string, normalized: string = '\r\n') =>
str.replace(/\r?\n/g, normalized);
Normalize line endings
Normalizes line endings in a string.
Log in to add a comment