-from django.conf.urls.defaults import *
+# -*- coding: utf-8 -*-
+# This file is part of KOED-Quiz, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+from django.conf.urls import patterns, url
urlpatterns = patterns('quiz.views',
url(r'^$', 'question', name='quiz'),
- url(r'^q/(?P<slug>[-a-z0-9]*)/$', 'question', name='quiz'),
- url(r'^r/(?P<slug>[-a-z0-9]*)/$', 'result', name='quiz_result'),
+ url(r'^q/(?P<slug>[^/]*)/$', 'question', name='quiz'),
+ url(r'^r/(?P<slug>[^/]*)/$', 'result', name='quiz_result'),
)