gudwin / botbuilder-unit

Library for Microsoft Bot Framework Chatbot unit testing
GNU Lesser General Public License v3.0
11 stars 7 forks source link

regex support in dialogs array #2

Closed SaidMavlyan closed 6 years ago

SaidMavlyan commented 6 years ago

Would be nice to have regex support in dialog configurations, like:

let script = [
  {
    "user": "hi"
  },
  {
    "bot": "/hi|welcome/"
  }
];

Would match hi or welcome as valid response.

SaidMavlyan commented 6 years ago

Regex is supported, we need to type regex without quotes. So for mentioned example, write "bot": /hi|welcome/