Skip to content

Commit

Permalink
allow hyphens in author usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarbaugh committed Mar 7, 2014
1 parent 235a2d6 commit ffe48be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wordpress/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

urlpatterns = patterns('wordpress.views',

url(r'^author/(?P<username>\w+)/$',
url(r'^author/(?P<username>[\w-]+)/$',
AuthorArchive.as_view(), name='wp_author'),

url(r'^category/(?P<term>.+)/$',
Expand Down

0 comments on commit ffe48be

Please sign in to comment.