From 62beff176e557cbcb8b45320aef056cba8deefe5 Mon Sep 17 00:00:00 2001 From: JasonHomeWorkstationUbuntu Date: Wed, 11 Nov 2020 15:19:01 +1100 Subject: [PATCH] 7.11.1 Beware of Greedy Regular Expressions! --- src/superlists/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/superlists/urls.py b/src/superlists/urls.py index 5a673b6..7765262 100644 --- a/src/superlists/urls.py +++ b/src/superlists/urls.py @@ -19,5 +19,5 @@ from lists import views urlpatterns = [ url(r'^$', views.home_page, name='home'), url(r'^lists/new$', views.new_list, name='new_list'), - url(r'^lists/(.+)/$', views.view_list, name='view_list'), -] + url(r'^lists/(\d+)/$', views.view_list, name='view_list'), +] \ No newline at end of file