First upload version 0.0.1
This commit is contained in:
18
node_modules/@octokit/webhooks/dist-src/normalize-trailing-slashes.js
generated
vendored
Normal file
18
node_modules/@octokit/webhooks/dist-src/normalize-trailing-slashes.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
function normalizeTrailingSlashes(path) {
|
||||
let i = path.length;
|
||||
if (i === 0) {
|
||||
return "/";
|
||||
}
|
||||
while (i > 0) {
|
||||
if (path.charCodeAt(--i) !== 47) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (i === -1) {
|
||||
return "/";
|
||||
}
|
||||
return path.slice(0, i + 1);
|
||||
}
|
||||
export {
|
||||
normalizeTrailingSlashes
|
||||
};
|
||||
Reference in New Issue
Block a user