From 3ea645f8e5deae417b92e1116d92c69a423ea516 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 24 Apr 2019 15:13:44 +0200 Subject: [PATCH] Fix regexp not matching the given popup id because of invalid regexp --- api/js/framework/fw_base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/framework/fw_base.js b/api/js/framework/fw_base.js index 38f4ea6e09..0b351dcd4a 100644 --- a/api/js/framework/fw_base.js +++ b/api/js/framework/fw_base.js @@ -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]); }