Django.url can't handle optional trailing slash in URL regex #20

rouge8 opened this Issue Jun 6, 2013 · 2 comments


None yet

2 participants


When a URL pattern has an optional trailing slash, _get_urls() matches the URL as url/? rather than url.

I pushed a failing test case in d78a140. I'm going to take a look at it in more detail later, but it didn't appear to be a trivial fix.

@noirbizarre noirbizarre added a commit that referenced this issue Jun 6, 2013
@rouge8 rouge8 Failing test case for #20. 80207e3

Looks like that was easier than I thought. Thanks for the quick fix!


Regex power !!!

You're welcome !
By the way, thanks for the reports and the many contributions !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment