diff --git a/homerate/address_api/urls.py b/homerate/address_api/urls.py index de8f586..2d9d21a 100644 --- a/homerate/address_api/urls.py +++ b/homerate/address_api/urls.py @@ -4,7 +4,7 @@ urlpatterns = [ url( # Regex to match UK postcodes - r'postcode/(?P^(GIR ?0AA|[A-PR-UWYZ]([0-9]{1,2}|([A-HK-Y][0-9]([0-9ABEHMNPRV-Y])?)|[0-9][A-HJKPS-UW]) ?[0-9][ABD-HJLNP-UW-Z]{2}))/$', + r'postcode/(?P(GIR ?0AA|[A-PR-UWYZ]([0-9]{1,2}|([A-HK-Y][0-9]([0-9ABEHMNPRV-Y])?)|[0-9][A-HJKPS-UW]) ?[0-9][ABD-HJLNP-UW-Z]{2}))/$', views.api_request, name='address_api') ]