mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-18 01:58:41 +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)
|
||||
{
|
||||
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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user