Fakultas Ilmu Komputer UI

Commit 73452a7b authored by Wildan Fahmi Gunawan's avatar Wildan Fahmi Gunawan
Browse files

[GREEN] linkedin_url_pattern without www and id

parent cb5cd5ea
Pipeline #25241 passed with stages
in 9 minutes and 9 seconds
......@@ -65,7 +65,7 @@ class StudentViewSet(viewsets.ModelViewSet):
"""
user = self.get_object()
github_url_pattern = "^(https:\/\/www\.|https:\/\/)(github.com\/)([a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38})(\/)?$"
linkedin_url_pattern = "^(https:\/\/www\.|https:\/\/)(linkedin.com)(\/in)(\/[a-zA-Z0-9]*)(\/)?$"
linkedin_url_pattern = "^(https:\/\/www\.|https:\/\/|https:\/\/id\.)(linkedin.com)(\/in)(\/[a-zA-Z0-9]*)(\/)?$"
hackerrank_url_pattern = "^(https:\/\/www\.)(hackerrank.com)(\/[a-zA-Z0-9]*)(\/)?$"
if 'pdf_sertifikat' in request.data.keys():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment