From 96480603b90b2e828cba6d647f66be30ce29334f Mon Sep 17 00:00:00 2001 From: Siegfried Puchbauer Date: Fri, 11 Dec 2020 14:13:19 -0800 Subject: [PATCH] remove validation for channel prefix to allow for tokens or other values to be used --- src/app/default/restmap.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/default/restmap.conf b/src/app/default/restmap.conf index 44d6526..b3459e0 100644 --- a/src/app/default/restmap.conf +++ b/src/app/default/restmap.conf @@ -1,2 +1,2 @@ [validation:savedsearch] -action.slack.param.channel = validate( match('action.slack.param.channel', "^[#@]"), "Slack channel is invalid (must start with # or @)") +action.slack = case('action.slack' != "1", null(), 'action.slack.param.channel' == "action.slack.param.channel" OR 'action.slack.param.channel' == "", "Channel cannot be empty", 1==1, null()) \ No newline at end of file