mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-14 16:38:39 +00:00
Fixed bugs found through tests
This commit is contained in:
parent
6aaf28cc6c
commit
e96dc4d8b7
|
|
@ -119,7 +119,7 @@
|
||||||
jsOMS.Uri.UriFactory.clearLike = function(pattern)
|
jsOMS.Uri.UriFactory.clearLike = function(pattern)
|
||||||
{
|
{
|
||||||
let success = false;
|
let success = false;
|
||||||
const regexp = new Regexp(pattern);
|
const regexp = new RegExp(pattern);
|
||||||
|
|
||||||
for(let key in jsOMS.Uri.UriFactory.uri) {
|
for(let key in jsOMS.Uri.UriFactory.uri) {
|
||||||
if(jsOMS.Uri.UriFactory.uri.hasOwnProperty(key) && regexp.test(key)) {
|
if(jsOMS.Uri.UriFactory.uri.hasOwnProperty(key) && regexp.test(key)) {
|
||||||
|
|
@ -198,7 +198,7 @@
|
||||||
{
|
{
|
||||||
match = match.substr(1, match.length - 2);
|
match = match.substr(1, match.length - 2);
|
||||||
|
|
||||||
if (typeof toMatch !== 'undefined' && toMatch.hasProperty(match)) {
|
if (typeof toMatch !== 'undefined' && toMatch.hasOwnProperty(match)) {
|
||||||
return toMatch[match];
|
return toMatch[match];
|
||||||
} else if (typeof jsOMS.Uri.UriFactory.uri[match] !== 'undefined') {
|
} else if (typeof jsOMS.Uri.UriFactory.uri[match] !== 'undefined') {
|
||||||
return jsOMS.Uri.UriFactory.uri[match];
|
return jsOMS.Uri.UriFactory.uri[match];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user