--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
13
node_modules/trim-newlines/index.js
generated
vendored
Normal file
13
node_modules/trim-newlines/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
'use strict';
|
||||
|
||||
var fn = module.exports = function (x) {
|
||||
return fn.end(fn.start(x));
|
||||
};
|
||||
|
||||
fn.start = function (x) {
|
||||
return x.replace(/^[\r\n]+/, '');
|
||||
};
|
||||
|
||||
fn.end = function (x) {
|
||||
return x.replace(/[\r\n]+$/, '');
|
||||
};
|
||||
Loading…
Reference in a new issue