slack-ruby / slack-ruby-bot

The easiest way to write a Slack bot in Ruby.
MIT License
1.12k stars 187 forks source link

Allow multiline expression #179

Closed tiagotex closed 6 years ago

tiagotex commented 6 years ago

I'm trying to create a bot that expects a command like:

todo:
first
second

In the current version match[:expression] would return:

first

It seems like command regex parser doesn't allow multiline, I fixed it using Regexp::MULTILINE, now match[:expression] returns:

first
second

Is this something you would be interested in supporting?

dblock commented 6 years ago

Perfect, thanks.