wallet-core/node_modules/trim-off-newlines/index.js

8 lines
135 B
JavaScript
Raw Normal View History

2017-08-14 05:01:11 +02:00
'use strict';
var regex = /^(?:\r\n|\n|\r)+|(?:\r\n|\n|\r)+$/g;
module.exports = function (str) {
return str.replace(regex, '');
};