diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/CommonFilters.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/CommonFilters.js b/js/CommonFilters.js index a8171f64f..c3f5d0712 100644 --- a/js/CommonFilters.js +++ b/js/CommonFilters.js @@ -2,6 +2,13 @@ /* global __, ngettext */ define(["dojo/_base/declare"], function (declare) { Filters = { + filterDlgCheckRegExp: function(sender) { + try { + new RegExp("/" + sender.value + "/"); + } catch (e) { + console.error(e); + } + }, filterDlgCheckAction: function(sender) { const action = sender.value; |