#12950: urlresolvers.reverse returns '/$' when including namespaced '^$' 
pattern at
root '^$'
------------------------------------------+---------------------------------
               Reporter:  ungenio         |         Owner:  nobody              
          
                 Status:  closed          |     Milestone:                      
          
              Component:  Core framework  |       Version:  1.2-beta            
          
             Resolution:  invalid         |      Keywords:  urlresolvers 
reverse namespace
           Triage Stage:  Accepted        |     Has patch:  0                   
          
    Needs documentation:  0               |   Needs tests:  0                   
          
Patch needs improvement:  0               |  
------------------------------------------+---------------------------------
Changes (by v1v3kn):

  * status:  reopened => closed
  * resolution:  => invalid


Comment:

 @SmileyChris

 This is not really a bug, this is due to the way the '?' quantifier works.

 '?' matches the character preceding it zero or one time(s).
 Eg: the regex pattern 'cows' matches both 'cow' and 'cows'.

 And as Alex said earlier, you can't include anything after a '$'.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12950#comment:5>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
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