mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-01 02:48:43 +00:00
Fixed issue 79 in phpOMS
This commit is contained in:
parent
01fb086c69
commit
5f98434efe
|
|
@ -49,6 +49,39 @@
|
|||
return false;
|
||||
};
|
||||
|
||||
jsOMS.Uri.UriFactory.clearAll = function()
|
||||
{
|
||||
jsOMS.Uri.UriFactory.uri = {};
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
jsOMS.Uri.UriFactory.clear = function(key)
|
||||
{
|
||||
if(jsOMS.Uri.UriFactory.uri.hasOwnProperty(key)) {
|
||||
delete jsOMS.Uri.UriFactory.uri[key];
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
jsOMS.Uri.UriFactory.clearLike = function(pattern)
|
||||
{
|
||||
let success = false,
|
||||
regexp = new Regexp(pattern);
|
||||
|
||||
for(let key in jsOMS.Uri.UriFactory.uri) {
|
||||
if(jsOMS.Uri.UriFactory.uri.hasOwnProperty(key) && regexp.test(key)) {
|
||||
delete jsOMS.Uri.UriFactory.uri[key];
|
||||
success = true;
|
||||
}
|
||||
}
|
||||
|
||||
return success;
|
||||
};
|
||||
|
||||
/**
|
||||
* Remove multiple definitions of the same parameter
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user