projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
.gitignore added
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
node_modules
/
coc-prettier
/
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
};