blob: da31efd687f7d9524854313cbbf487efe68e2187 [file] [log] [blame]
Yang Guo4fd355c2019-09-19 08:59:031'use strict';
2
3var fn = module.exports = function (x) {
4 return fn.end(fn.start(x));
5};
6
7fn.start = function (x) {
8 return x.replace(/^[\r\n]+/, '');
9};
10
11fn.end = function (x) {
12 return x.replace(/[\r\n]+$/, '');
13};