dotfiles/.vscode/extensions/saviorisdead.RustyCode-0.18.0/node_modules/trim-newlines/index.js
Cyryl Płotnicki 2f946d6200 Add .vscode
2016-09-11 10:29:13 +02:00

13 lines
216 B
JavaScript

'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]+$/, '');
};