diff options
author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-09-03 17:53:45 +0000 |
---|---|---|
committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-09-03 17:53:45 +0000 |
commit | 399abd7fe874e4c85ae50196d099712ff401f11e (patch) | |
tree | 585fc9b0d511fdfca6e99a21afd65e96a7e21355 /django/utils/regex_helper.py | |
parent | b0b73b3e0ee98a43c924ae2b1957234fa7971e55 (diff) | |
download | django-399abd7fe874e4c85ae50196d099712ff401f11e.tar.gz |
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
Diffstat (limited to 'django/utils/regex_helper.py')
-rw-r--r-- | django/utils/regex_helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |