From 85f512c324db07e9e38a5b8b58b2b3020aba626d Mon Sep 17 00:00:00 2001 From: Surya Prashanth Date: Sat, 28 Oct 2017 23:53:54 +0530 Subject: [PATCH] customs: github url with trailing slash is validated fixes #1807 --- mysite/customs/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysite/customs/forms.py b/mysite/customs/forms.py index 4af39aeb0d..d166772da3 100644 --- a/mysite/customs/forms.py +++ b/mysite/customs/forms.py @@ -143,7 +143,7 @@ def save(self, *args, **kwargs): class GitHubTrackerForm(TrackerFormThatHidesCreatedForProject): github_url = django.forms.RegexField( - regex=r'^https?:\/\/github.com\/[a-zA-Z0-9\-]+\/[\-\w.]+$', + regex=r'^https?:\/\/github.com\/[a-zA-Z0-9\-]+\/[\-\w.]+[/]?$', max_length=200, required=True, help_text='This is the url of the GitHub project.',