diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-05-11 09:10:29 +0200 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-05-11 09:10:29 +0200 |
commit | 835d4487fb7a67ff0f0254ee4120bcdf12be5a07 (patch) | |
tree | aa931dfeafd43cf51adb224c4f6bf849437c52fc | |
parent | 1491ed656e528d475326a53aa4d69f6577aba6b6 (diff) | |
download | gitlab-ce-835d4487fb7a67ff0f0254ee4120bcdf12be5a07.tar.gz |
Fixed Regex(es)
-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}" |