Blame view
node_modules/loopback-component-explorer/lib/url-join.js
485 Bytes
f7563de62
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
// Copyright IBM Corp. 2014. All Rights Reserved. // Node module: loopback-component-explorer // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT 'use strict'; // Simple url joiner. Ensure we don't have to care about whether or not // we are fed paths with leading/trailing slashes. module.exports = function urlJoin() { var args = Array.prototype.slice.call(arguments); return args.join('/').replace(/\/+/g, '/'); }; |