mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-11 22:51:11 +00:00
new toolkit and scoped registries
This commit is contained in:
parent
a9f1343a9a
commit
feb12fe291
403 changed files with 81577 additions and 1990 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