forked from sombochea/verdaccio-ui
6 lines
189 B
JavaScript
6 lines
189 B
JavaScript
|
// @flow
|
||
|
|
||
|
export function spliceURL(...args: Array<string>): string {
|
||
|
return Array.from(args).reduce((lastResult, current) => lastResult + current).replace(/([^:])(\/)+(.)/g, `$1/$3`);
|
||
|
}
|