mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-14 16:38:39 +00:00
fix todos/move to todo list
This commit is contained in:
parent
29707c3b13
commit
e91ebc77bb
|
|
@ -126,12 +126,12 @@ export class UriFactory
|
||||||
*/
|
*/
|
||||||
static unique (url)
|
static unique (url)
|
||||||
{
|
{
|
||||||
|
const parsed = HttpUri.parseUrl(url);
|
||||||
|
if (parsed.hasOwnProperty('query')) {
|
||||||
// unique queries
|
// unique queries
|
||||||
const parts = url.replace(/\?/g, '&').split('&'),
|
const parts = parsed.query.replace(/\?/g, '&').split('&'),
|
||||||
full = parts[0];
|
full = parts[0];
|
||||||
|
|
||||||
// @todo: handle fragment
|
|
||||||
|
|
||||||
if (parts.length > 1) {
|
if (parts.length > 1) {
|
||||||
parts.shift();
|
parts.shift();
|
||||||
|
|
||||||
|
|
@ -153,6 +153,7 @@ export class UriFactory
|
||||||
|
|
||||||
url = full + '?' + pars.join('&');
|
url = full + '?' + pars.join('&');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// unique fragments
|
// unique fragments
|
||||||
const fragments = url.match(/\#[a-zA-Z0-9\-,]+/g),
|
const fragments = url.match(/\#[a-zA-Z0-9\-,]+/g),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user