conventional-changelog-action/node_modules/trim-off-newlines/index.js

8 lines
135 B
JavaScript

'use strict';
var regex = /^(?:\r\n|\n|\r)+|(?:\r\n|\n|\r)+$/g;
module.exports = function (str) {
return str.replace(regex, '');
};