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/gitlab/authorized_keys.rb')
-rw-r--r--lib/gitlab/authorized_keys.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/authorized_keys.rb b/lib/gitlab/authorized_keys.rb
index 3e529a0d2f3..00d9480334e 100644
--- a/lib/gitlab/authorized_keys.rb
+++ b/lib/gitlab/authorized_keys.rb
@@ -153,7 +153,7 @@ module Gitlab
end
def command(id)
- unless /\A[a-z0-9-]+\z/ =~ id
+ unless /\A[a-z0-9-]+\z/.match?(id)
raise KeyError, "Invalid ID: #{id.inspect}"
end