Skip to content

Commit

Permalink
Correct typo in postcode regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeshanA committed Jun 10, 2018
1 parent cf17a52 commit b2b6b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homerate/address_api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
urlpatterns = [
url(
# Regex to match UK postcodes
r'postcode/(?P<postcode>^(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<postcode>(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')
]

0 comments on commit b2b6b54

Please sign in to comment.