mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user