Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimeddu Cireddu <massimeddu@gmail.com>2019-09-02 13:43:54 +0300
committerNick Thomas <nick@gitlab.com>2019-09-02 13:43:54 +0300
commitaef0d817927f514ad5a0a42203aff94e30f13740 (patch)
tree373c3f577ce1f43fb004e0f20f4313dc15bc1518 /lib/gitlab/regex.rb
parentc0e679e098688080b1835526eb0bca910dcb030c (diff)
Fixing #65389
Wrong format on MS Teams integration push events with multi line commit messages
Diffstat (limited to 'lib/gitlab/regex.rb')
-rw-r--r--lib/gitlab/regex.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb
index e6372a42dda..6636ffa448e 100644
--- a/lib/gitlab/regex.rb
+++ b/lib/gitlab/regex.rb
@@ -115,5 +115,9 @@ module Gitlab
def jira_transition_id_regex
@jira_transition_id_regex ||= /\d+/
end
+
+ def breakline_regex
+ @breakline_regex ||= /\r\n|\r|\n/
+ end
end
end