Allow + and - in mail addr (before the @ - Issue #65

parent 2535cefa
Pipeline #1976 passed with stage
in 13 minutes and 43 seconds
......@@ -100,7 +100,7 @@ urlpatterns = [ # pylint: disable=invalid-name
r'import_photo/$',
ImportPhotoView.as_view(), name='import_photo'),
url(
r'import_photo/(?P<email_addr>[\w.]+@[\w.]+.[\w.]+)',
r'import_photo/(?P<email_addr>[\w.+-]+@[\w.]+.[\w.]+)',
ImportPhotoView.as_view(), name='import_photo'),
url(
r'import_photo/(?P<email_id>\d+)',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment