8 lines
135 B
JavaScript
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, '');
|
||
|
};
|