forked from mirrors/action-gh-release
vendor node_modules for release
This commit is contained in:
parent
6ecc92f5ad
commit
83407ce885
446 changed files with 83961 additions and 2 deletions
15
node_modules/strip-eof/index.js
generated
vendored
Normal file
15
node_modules/strip-eof/index.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
'use strict';
|
||||
module.exports = function (x) {
|
||||
var lf = typeof x === 'string' ? '\n' : '\n'.charCodeAt();
|
||||
var cr = typeof x === 'string' ? '\r' : '\r'.charCodeAt();
|
||||
|
||||
if (x[x.length - 1] === lf) {
|
||||
x = x.slice(0, x.length - 1);
|
||||
}
|
||||
|
||||
if (x[x.length - 1] === cr) {
|
||||
x = x.slice(0, x.length - 1);
|
||||
}
|
||||
|
||||
return x;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue