summaryrefslogtreecommitdiff
path: root/lib/gitlab/slash_commands/run.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/slash_commands/run.rb')
-rw-r--r--lib/gitlab/slash_commands/run.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/slash_commands/run.rb b/lib/gitlab/slash_commands/run.rb
index 10a545e28ac..40fd7ee4f20 100644
--- a/lib/gitlab/slash_commands/run.rb
+++ b/lib/gitlab/slash_commands/run.rb
@@ -5,7 +5,7 @@ module Gitlab
# Slash command for triggering chatops jobs.
class Run < BaseCommand
def self.match(text)
- /\Arun\s+(?<command>\S+)(\s+(?<arguments>.+))?\z/.match(text)
+ /\Arun\s+(?<command>\S+)(\s+(?<arguments>.+))?\z/m.match(text)
end
def self.help_message