debian-mirror-gitlab/app/assets/javascripts/lib/utils/normalize_newlines.js
2017-08-17 22:00:37 +05:30

5 lines
131 B
JavaScript

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