Ticket #8725: regex_helper_r8761_with_test.diff
File regex_helper_r8761_with_test.diff, 1.2 KB (added by , 16 years ago) |
---|
-
django/utils/regex_helper.py
74 74 # A "while" loop is used here because later on we need to be able to peek 75 75 # at the next character and possibly go around without consuming another 76 76 # one at the top of the loop. 77 ch, escaped = pattern_iter.next()78 77 try: 78 ch, escaped = pattern_iter.next() 79 79 while True: 80 80 if escaped: 81 81 result.append(ch) -
tests/regressiontests/urlpatterns_reverse/urls.py
40 40 url(r'^(?i)test/2/?$', empty_view, name="test2"), 41 41 url(r'^outer/(?P<outer>\d+)/', 42 42 include('regressiontests.urlpatterns_reverse.included_urls')), 43 url(r'', empty_view, name='emptyregex'), 43 44 44 45 # This is non-reversible, but we shouldn't blow up when parsing it. 45 46 url(r'^(?:foo|bar)(\w+)/$', empty_view, name="disjunction"),