-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate Linkedin urls #2406
base: master
Are you sure you want to change the base?
Validate Linkedin urls #2406
Conversation
463a57c
to
73ddc78
Compare
ynr/apps/people/helpers.py
Outdated
@@ -120,6 +121,12 @@ def clean_twitter_username(username): | |||
return username | |||
|
|||
|
|||
def clean_linkedin_url(url): | |||
if not re.match(r"^https?://(www\.)?linkedin\.com/in/[\w-]+/?$", url): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update this as per the insta PR to use urlparse
to match the domain(s) and path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I thought I had! Will do.
@sym We have several linkedin urls that are redirects, for example: FYI, we have 5,556 instances of a LinkedIn |
c4a34fc
to
b9d4747
Compare
b9d4747
to
5ea0157
Compare
9c60a28
to
5ea0157
Compare
This change