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
This commit is contained in:
parent
b0b73b3e0e
commit
399abd7fe8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue