diff options
author | Massimeddu Cireddu <massimeddu@gmail.com> | 2019-09-02 10:43:54 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-09-02 10:43:54 +0000 |
commit | aef0d817927f514ad5a0a42203aff94e30f13740 (patch) | |
tree | 373c3f577ce1f43fb004e0f20f4313dc15bc1518 /lib/gitlab/regex.rb | |
parent | c0e679e098688080b1835526eb0bca910dcb030c (diff) | |
download | gitlab-ce-aef0d817927f514ad5a0a42203aff94e30f13740.tar.gz |
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.rb | 4 |
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 |