Author: mtredinnick
Date: 2008-09-03 12:53:45 -0500 (Wed, 03 Sep 2008)
New Revision: 8929

Modified:
   django/trunk/django/utils/regex_helper.py
Log:
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().


Modified: django/trunk/django/utils/regex_helper.py
===================================================================
--- django/trunk/django/utils/regex_helper.py   2008-09-03 16:17:54 UTC (rev 
8928)
+++ django/trunk/django/utils/regex_helper.py   2008-09-03 17:53:45 UTC (rev 
8929)
@@ -85,7 +85,7 @@
                 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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to