You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 216B

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. };