ran npm run tdd
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
module.exports = URLJoin = (...args) =>
|
||||
args.join('/')
|
||||
.replace(/[\/]+/g,'/')
|
||||
.replace(/^(.+):\//,'$1://')
|
||||
.replace(/^file:/,'file:/')
|
||||
const URLJoin = (...args) =>
|
||||
args
|
||||
.join('/')
|
||||
.replace(/[\/]+/g, '/')
|
||||
.replace(/^(.+):\//, '$1://')
|
||||
.replace(/^file:/, 'file:/')
|
||||
.replace(/\/(\?|&|#[^!])/g, '$1')
|
||||
.replace(/\?/g,'&')
|
||||
.replace('&','?');
|
||||
.replace(/\?/g, '&')
|
||||
.replace('&', '?');
|
||||
module.exports = URLJoin
|
||||
Reference in New Issue
Block a user