Skip to content

Commit a769e86

Browse files
committed
Github usernames may contain hyphens.
Fix: Syte would give a 404 if the github username contained a hyphen. Solves issue #119.
1 parent 1ca5157 commit a769e86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syte/urls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
if settings.GITHUB_INTEGRATION_ENABLED:
3030
urlpatterns += patterns('',
31-
url(r'^github/(?P<username>\w+)/?$', 'syte.views.github.github'),
31+
url(r'^github/(?P<username>[\-\w]+)/?$', 'syte.views.github.github'),
3232
)
3333

3434
#Bitbucket Integration

0 commit comments

Comments
 (0)