Initial commit
[yaffs-website] / node_modules / trim-newlines / index.js
1 'use strict';
2
3 var fn = module.exports = function (x) {
4         return fn.end(fn.start(x));
5 };
6
7 fn.start = function (x) {
8         return x.replace(/^[\r\n]+/, '');
9 };
10
11 fn.end = function (x) {
12         return x.replace(/[\r\n]+$/, '');
13 };