aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/index.md1
-rw-r--r--rest_framework/urlpatterns.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/docs/index.md b/docs/index.md
index 9ec25025..b51963c3 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -59,7 +59,6 @@ Note that the base URL can be whatever you want, but you must include `rest_fram
## Quickstart
-
## Tutorial
The tutorial will walk you through the building blocks that make up REST framework. It'll take a little while to get through, but it'll give you a comprehensive understanding of how everything fits together, and is highly recommended reading.
diff --git a/rest_framework/urlpatterns.py b/rest_framework/urlpatterns.py
index 7d09651a..7640f45d 100644
--- a/rest_framework/urlpatterns.py
+++ b/rest_framework/urlpatterns.py
@@ -8,7 +8,7 @@ def format_suffix_patterns(urlpatterns, suffix_required=False, suffix_kwarg=None
include a '.format' suffix. Retains urlpattern ordering.
"""
suffix_kwarg = suffix_kwarg or api_settings.FORMAT_SUFFIX_KWARG
- suffix_pattern = '.(?P<%s>[a-z]+)$' % suffix_kwarg
+ suffix_pattern = '\.(?P<%s>[a-z]+)$' % suffix_kwarg
ret = []
for urlpattern in urlpatterns: