projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Security update to Drupal 8.4.6
[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
};