Django

Code

Show
Ignore:
Timestamp:
09/03/08 12:53:45 (4 months ago)
Author:
mtredinnick
Message:

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().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/utils/regex_helper.py

    r8825 r8929  
    8686            elif ch == '.': 
    8787                # Replace "any character" with an arbitrary representative. 
    88                 result.append(u"x") 
     88                result.append(u".") 
    8989            elif ch == '|': 
    9090                # FIXME: One day we'll should do this, but not in 1.0.