from django.conf.urls import patterns, url


urlpatterns = patterns(
    'us_ignite.search.views',
    url(r'apps/', 'search_apps', name='search_apps'),
    url(r'events/', 'search_events', name='search_events'),
    url(r'hubs/', 'search_hubs', name='search_hubs'),
    url(r'orgs/', 'search_organizations', name='search_organizations'),
    url(r'resources/', 'search_resources', name='search_resources'),
)

from django.conf.urls import patterns, url


urlpatterns = patterns(
    'us_ignite.search.views',
    url(r'^apps/$', 'search_apps', name='search_apps'),
    url(r'^events/$', 'search_events', name='search_events'),
    url(r'^hubs/$', 'search_hubs', name='search_hubs'),
    url(r'^orgs/$', 'search_organizations', name='search_organizations'),
    url(r'^resources/$', 'search_resources', name='search_resources'),
)

Fix broad regex for the ``search`` URLs.
Fix broad regex for the ``search`` URLs.

  from django.conf.urls import patterns, url
  
  
  urlpatterns = patterns(
      'us_ignite.search.views',
-     url(r'apps/', 'search_apps', name='search_apps'),
+     url(r'^apps/$', 'search_apps', name='search_apps'),
-     url(r'events/', 'search_events', name='search_events'),
+     url(r'^events/$', 'search_events', name='search_events'),
-     url(r'hubs/', 'search_hubs', name='search_hubs'),
+     url(r'^hubs/$', 'search_hubs', name='search_hubs'),
-     url(r'orgs/', 'search_organizations', name='search_organizations'),
+     url(r'^orgs/$', 'search_organizations', name='search_organizations'),
-     url(r'resources/', 'search_resources', name='search_resources'),
+     url(r'^resources/$', 'search_resources', name='search_resources'),
  )
  
Fix broad regex for the ``search`` URLs.
## Code Before:
from django.conf.urls import patterns, url


urlpatterns = patterns(
    'us_ignite.search.views',
    url(r'apps/', 'search_apps', name='search_apps'),
    url(r'events/', 'search_events', name='search_events'),
    url(r'hubs/', 'search_hubs', name='search_hubs'),
    url(r'orgs/', 'search_organizations', name='search_organizations'),
    url(r'resources/', 'search_resources', name='search_resources'),
)

## Instruction:
Fix broad regex for the ``search`` URLs.
## Code After:
from django.conf.urls import patterns, url


urlpatterns = patterns(
    'us_ignite.search.views',
    url(r'^apps/$', 'search_apps', name='search_apps'),
    url(r'^events/$', 'search_events', name='search_events'),
    url(r'^hubs/$', 'search_hubs', name='search_hubs'),
    url(r'^orgs/$', 'search_organizations', name='search_organizations'),
    url(r'^resources/$', 'search_resources', name='search_resources'),
)
