Update urlpatterns.py

Allow numbers in format extension.
Merge pull request #1229 from jgomezb/patch-2

Update urlpatterns.py