Skip to content
Snippets Groups Projects
Commit 835d4487 authored by Tim Zallmann's avatar Tim Zallmann
Browse files

Fixed Regex(es)

parent 1491ed65
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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}"
Loading
Loading
@@ -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}"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment