Ticket #4883: django-plus-sign-fix.patch
File django-plus-sign-fix.patch, 642 bytes (added by , 17 years ago) |
---|
-
django/core/urlresolvers.py
86 86 """ 87 87 # TODO: Handle nested parenthesis in the following regex. 88 88 result = re.sub(r'\(([^)]+)\)', MatchChecker(args, kwargs), regex.pattern) 89 return result.replace('^', '').replace('$', '') 89 # TODO: Handle other special characters. 90 return result.replace('^', '').replace('$', '').replace('\+', '+').replace('\.', '.') 90 91 91 92 class MatchChecker(object): 92 93 "Class used in reverse RegexURLPattern lookup."