'use strict'; const NEW_LINE_SEPARATOR = require('../constants').NEW_LINE_SEPARATOR; module.exports = { replaceNewLines }; function replaceNewLines(str) { return str.replace(/(\r\n|\n|\r)/g, NEW_LINE_SEPARATOR); }