]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Fix style issues found by new rubocop version
[rails.git] / app / controllers / user_controller.rb
index be3ab86fb6ede710f1ce17d4df14f290c5bf41e4..367c0471dc1d5b3f60a2fcb03fa05de1bf8e8c71 100644 (file)
@@ -572,7 +572,7 @@ class UserController < ApplicationController
   def openid_expand_url(openid_url)
     if openid_url.nil?
       return nil
-    elsif openid_url.match(/(.*)gmail.com(\/?)$/) || openid_url.match(/(.*)googlemail.com(\/?)$/)
+    elsif openid_url.match(%r{(.*)gmail.com(/?)$}) || openid_url.match(%r{(.*)googlemail.com(/?)$})
       # Special case gmail.com as it is potentially a popular OpenID
       # provider and, unlike yahoo.com, where it works automatically, Google
       # have hidden their OpenID endpoint somewhere obscure this making it