Skip to content

Commit

Permalink
customs: github url with trailing slash is validated fixes openhatch#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant-Surya committed Oct 28, 2017
1 parent ce29352 commit 85f512c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysite/customs/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down

0 comments on commit 85f512c

Please sign in to comment.