summaryrefslogtreecommitdiff
path: root/lib/gitlab/github_import/representation/note.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/github_import/representation/note.rb')
-rw-r--r--lib/gitlab/github_import/representation/note.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/github_import/representation/note.rb b/lib/gitlab/github_import/representation/note.rb
index a68bc4c002f..070e3b2db8d 100644
--- a/lib/gitlab/github_import/representation/note.rb
+++ b/lib/gitlab/github_import/representation/note.rb
@@ -12,7 +12,7 @@ module Gitlab
expose_attribute :noteable_id, :noteable_type, :author, :note,
:created_at, :updated_at, :github_id
- NOTEABLE_TYPE_REGEX = /\/(?<type>(pull|issues))\/(?<iid>\d+)/i
+ NOTEABLE_TYPE_REGEX = %r{/(?<type>(pull|issues))/(?<iid>\d+)}i
# Builds a note from a GitHub API response.
#