diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-29 15:23:44 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-29 15:23:44 +0200 |
commit | 28bafd5354427d27cabe40966bd069a75984e2b1 (patch) | |
tree | 81272d3aeb0c5a001dba8f66fd2f4c7a2962268d /app/models/user.rb | |
parent | 9798ac77ed3a1e6106f22c3304f431763ec2cf45 (diff) | |
download | gitlab-ce-28bafd5354427d27cabe40966bd069a75984e2b1.tar.gz |
Enable Style/SpaceAfterComma Rubocop coprubocop/enable-space-after-cops
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 767d6366c79..eac716b120b 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -764,7 +764,7 @@ class User < ActiveRecord::Base unless email_domains.blank? match_found = email_domains.any? do |domain| - escaped = Regexp.escape(domain).gsub('\*','.*?') + escaped = Regexp.escape(domain).gsub('\*', '.*?') regexp = Regexp.new "^#{escaped}$", Regexp::IGNORECASE email_domain = Mail::Address.new(self.email).domain email_domain =~ regexp |