index.js 216 B

12345678910111213
  1. 'use strict';
  2. var fn = module.exports = function (x) {
  3. return fn.end(fn.start(x));
  4. };
  5. fn.start = function (x) {
  6. return x.replace(/^[\r\n]+/, '');
  7. };
  8. fn.end = function (x) {
  9. return x.replace(/[\r\n]+$/, '');
  10. };