projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Update .bashrc
[dotfiles/.git]
/
trim-newlines
/
index.js
1
'use strict';
2
module.exports = x => x.replace(/^[\r\n]+/, '').replace(/[\r\n]+$/, '');
3
module.exports.start = x => x.replace(/^[\r\n]+/, '');
4
module.exports.end = x => x.replace(/[\r\n]+$/, '');