
__author__ = "Matt Pryor"
__copyright__ = "Copyright 2015 UK Science and Technology Facilities Council"

from django.conf.urls import url, include

from . import views

app_name = 'jasmin_notifications'
urlpatterns = [
    url(r'^(?P<uuid>[a-zA-Z0-9-]+)/$', views.follow, name = 'follow'),
]


__author__ = "Matt Pryor"
__copyright__ = "Copyright 2015 UK Science and Technology Facilities Council"

from django.conf.urls import url, include

from . import views

app_name = 'jasmin_notifications'
urlpatterns = [
    url(
        r'^(?P<uuid>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/$',
        views.follow,
        name = 'follow'
    ),
]

Update regex to match only UUIDs
Update regex to match only UUIDs

  
  __author__ = "Matt Pryor"
  __copyright__ = "Copyright 2015 UK Science and Technology Facilities Council"
  
  from django.conf.urls import url, include
  
  from . import views
  
  app_name = 'jasmin_notifications'
  urlpatterns = [
-     url(r'^(?P<uuid>[a-zA-Z0-9-]+)/$', views.follow, name = 'follow'),
+     url(
+         r'^(?P<uuid>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/$',
+         views.follow,
+         name = 'follow'
+     ),
  ]
  
Update regex to match only UUIDs
## Code Before:

__author__ = "Matt Pryor"
__copyright__ = "Copyright 2015 UK Science and Technology Facilities Council"

from django.conf.urls import url, include

from . import views

app_name = 'jasmin_notifications'
urlpatterns = [
    url(r'^(?P<uuid>[a-zA-Z0-9-]+)/$', views.follow, name = 'follow'),
]

## Instruction:
Update regex to match only UUIDs
## Code After:

__author__ = "Matt Pryor"
__copyright__ = "Copyright 2015 UK Science and Technology Facilities Council"

from django.conf.urls import url, include

from . import views

app_name = 'jasmin_notifications'
urlpatterns = [
    url(
        r'^(?P<uuid>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/$',
        views.follow,
        name = 'follow'
    ),
]
