Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Regular Expressions based Hears not working #6

Open
Purus opened this issue Jun 1, 2018 · 1 comment
Open

Regular Expressions based Hears not working #6

Purus opened this issue Jun 1, 2018 · 1 comment

Comments

@Purus
Copy link

Purus commented Jun 1, 2018

When using Regular Expressions on hears, it does not work as === is used. should this be changed to support regex?

    hears: (patterns, message) => {
      return patterns.some(pattern => {
        if (message.intent.name === pattern) {
          debug('Rasa intent matched hear pattern', message.intent, pattern)
          return true
        }
      })
    }
@Purus
Copy link
Author

Purus commented Jun 1, 2018

Created this pull request. Please review and publish.

#7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants