Mercurial > piecrust2
changeset 154:a42469dbdc47
Match routes completely, not partially.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 27 Dec 2014 16:47:44 -0800 |
parents | 1c3d229158ba |
children | 70b86e904b85 |
files | piecrust/routing.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/routing.py Thu Dec 04 12:49:53 2014 -0800 +++ b/piecrust/routing.py Sat Dec 27 16:47:44 2014 -0800 @@ -26,7 +26,7 @@ self.uri_root = app.config.get('site/root').rstrip('/') + '/' self.uri_pattern = uri.lstrip('/') self.uri_format = route_re.sub(self._uriFormatRepl, self.uri_pattern) - p = route_re.sub(self._uriPatternRepl, self.uri_pattern) + p = route_re.sub(self._uriPatternRepl, self.uri_pattern) + '$' self.uri_re = re.compile(p) self.source_name = cfg['source'] self.taxonomy = cfg.get('taxonomy')