mirror of
https://github.com/S2-/gitlit
synced 2025-08-04 05:10:05 +02:00
add node modules to repo
This commit is contained in:
13
app/node_modules/trim-newlines/index.js
generated
vendored
Normal file
13
app/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]+$/, '');
|
||||
};
|
Reference in New Issue
Block a user