summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJacopo <beschi.jacopo@gmail.com>2019-07-20 11:06:19 +0200
committerJacopo <beschi.jacopo@gmail.com>2019-07-29 21:51:16 +0200
commit6613a57772ee14b121b790ab8048523d1c0430ce (patch)
treea65537100c2c2a8cf8cf03f0fb51a7c57164ed63 /lib
parent0d1adc9f7f990254fd88ba03011908cc4f83461d (diff)
downloadgitlab-ce-6613a57772ee14b121b790ab8048523d1c0430ce.tar.gz
Add system notes for when a zoom call was added/removed from an issue63547-add-system-notes-for-when-a-zoom-call-was-added-removed-from-an-issue
Add a zoom link added / removed system note when a zoom link is being added / removed to the issue description.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/zoom_link_extractor.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/zoom_link_extractor.rb b/lib/gitlab/zoom_link_extractor.rb
index d9994898a08..7ac14eb2d4f 100644
--- a/lib/gitlab/zoom_link_extractor.rb
+++ b/lib/gitlab/zoom_link_extractor.rb
@@ -17,5 +17,9 @@ module Gitlab
def links
@text.scan(ZOOM_REGEXP)
end
+
+ def match?
+ ZOOM_REGEXP.match?(@text)
+ end
end
end