slackapi / node-slack-interactive-messages

Slack Buttons, Menus, and Dialogs made simpler for Node
MIT License
133 stars 41 forks source link

RegEx constraint matching is broken #1

Closed aoberoi closed 7 years ago

aoberoi commented 7 years ago

Description

coming from @hwz:

I dont think the regex matching for the events api adapter works

I’m getting TypeError: constraints.callbackId.text is not a function errors for adapter.js

it looks like a simple typo on L193: text() -> test()

What type of issue is this? (place an x in one of the [ ])

Requirements

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

slack-events version: 1.0.1 node version: all OS version(s): all

Steps to reproduce:

  1. add an action with a RegEx for callbackId
  2. trigger the action

Expected result:

action callback is called

Actual result:

TypeError is thrown