From 1c5da13b9fc227323f7023327c8c97e9f446353f Mon Sep 17 00:00:00 2001 From: Michael Basnight Date: Tue, 28 Feb 2012 10:49:31 -0800 Subject: Added functionality to allow escaped dots in urls * Added to regex to allow excaped dots in urls * Added tests to make sure escaped dots work and dont clobber the existing format strings --HG-- branch : trunk --- routes/mapper.py | 4 ++-- tests/test_functional/test_resources.py | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/routes/mapper.py b/routes/mapper.py index 18ade09..630933f 100644 --- a/routes/mapper.py +++ b/routes/mapper.py @@ -1079,8 +1079,8 @@ class Mapper(SubMapperParent): self.connect("formatted_" + name_prefix + name, formatted_path, **route_options) self.connect(name_prefix + name, path, **route_options) - - requirements_regexp = '[^\/]+' + + requirements_regexp = '[^\/]+?(?