fix todos/move to todo list

This commit is contained in:
Dennis Eichhorn 2020-11-26 20:50:18 +01:00
parent 29707c3b13
commit e91ebc77bb

View File

@ -126,12 +126,12 @@ export class UriFactory
*/
static unique (url)
{
const parsed = HttpUri.parseUrl(url);
if (parsed.hasOwnProperty('query')) {
// unique queries
const parts = url.replace(/\?/g, '&').split('&'),
const parts = parsed.query.replace(/\?/g, '&').split('&'),
full = parts[0];
// @todo: handle fragment
if (parts.length > 1) {
parts.shift();
@ -153,6 +153,7 @@ export class UriFactory
url = full + '?' + pars.join('&');
}
}
// unique fragments
const fragments = url.match(/\#[a-zA-Z0-9\-,]+/g),