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