From 399abd7fe874e4c85ae50196d099712ff401f11e Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Wed, 3 Sep 2008 17:53:45 +0000 Subject: [PATCH] Changed the reverse() call for creating URLs to convert a "." in the reg-exp pattern to a "." in the final output. This hides what is probably a bug in the pattern (the user almost certainly should have written "\."), but it will avoid a large number of "bug" reports about reverse(). git-svn-id: http://code.djangoproject.com/svn/django/trunk@8929 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/utils/regex_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/regex_helper.py b/django/utils/regex_helper.py index 996e391707..b11fe960bb 100644 --- a/django/utils/regex_helper.py +++ b/django/utils/regex_helper.py @@ -85,7 +85,7 @@ def normalize(pattern): result.append(ch) elif ch == '.': # Replace "any character" with an arbitrary representative. - result.append(u"x") + result.append(u".") elif ch == '|': # FIXME: One day we'll should do this, but not in 1.0. raise NotImplementedError