diff options
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ce9413172a5..1bca588fdc9 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -281,7 +281,7 @@ module ApplicationHelper def linkedin_url(user) name = user.linkedin - if name =~ %r{\Ahttps?:\/\/(www\.)?linkedin\.com\/in\/(.*)\z} + if name =~ %r{\Ahttps?:\/\/(www\.)?linkedin\.com\/in\/} name else "https://www.linkedin.com/in/#{name}" @@ -290,7 +290,7 @@ module ApplicationHelper def twitter_url(user) name = user.twitter - if name =~ %r{\Ahttps?:\/\/(www\.)?twitter\.com\/(.*)\z} + if name =~ %r{\Ahttps?:\/\/(www\.)?twitter\.com\/} name else "https://www.twitter.com/#{name}" |