6 lines
131 B
JavaScript
6 lines
131 B
JavaScript
|
function normalizeNewlines(str) {
|
||
|
return str.replace(/(\r|
)?(\n|
)/g, '\n');
|
||
|
}
|
||
|
|
||
|
export default normalizeNewlines;
|