| .. | |||||
| add-git-sha.js | |||||
| cache-dir.js | |||||
| is-package-bin.js | |||||
| npm.js | |||||
| protected.js | |||||
| tar-create-options.js | |||||
| trailing-slashes.js |
const removeTrailingSlashes = (input) => {
// in order to avoid regexp redos detection
let output = input
while (output.endsWith('/')) {
output = output.slice(0, -1)
}
return output
}
module.exports = removeTrailingSlashes
| .. | |||||
| add-git-sha.js | |||||
| cache-dir.js | |||||
| is-package-bin.js | |||||
| npm.js | |||||
| protected.js | |||||
| tar-create-options.js | |||||
| trailing-slashes.js |