4 lines
119 B
TypeScript
4 lines
119 B
TypeScript
![]() |
export const normalizeLineEndings = (str: string, normalized = '\n') => {
|
||
|
return str.replace(/\r?\n/g, normalized)
|
||
|
}
|