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:
Diffstat (limited to 'lib/api/helpers/common_helpers.rb')
-rw-r--r--lib/api/helpers/common_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers/common_helpers.rb b/lib/api/helpers/common_helpers.rb
index 855648f2ef0..265e9ffcdbd 100644
--- a/lib/api/helpers/common_helpers.rb
+++ b/lib/api/helpers/common_helpers.rb
@@ -27,7 +27,7 @@ module API
options[:route_options][:params].map do |key, val|
param_type = val[:type]
# Search for parameters with Array types (e.g. "[String]", "[Integer]", etc.)
- if param_type =~ %r(\[\w*\])
+ if param_type =~ %r{\[\w*\]}
key
end
end.compact.to_set