Fix regexp not matching the given popup id because of invalid regexp

This commit is contained in:
Hadi Nategh 2019-04-24 15:13:44 +02:00
parent a76af8c7e3
commit 3ea645f8e5

View File

@ -888,7 +888,7 @@ var fw_base = (function(){ "use strict"; return Class.extend(
if (typeof param === 'object' && !(param instanceof RegExp))
{
var key = Object.keys(param)[0];
if (!popups[j][key].match(param[key]))
if (!popups[j][key].match(new RegExp(param[key])))
{
delete(popups[j]);
}