fix(nodeserver): docs rewriting

There can be url /api which does not end with / and we want to rewrite this url as well...
This commit is contained in:
Vojta Jina 2011-10-12 18:25:42 -07:00 committed by Igor Minar
parent 02332107e5
commit 8e32f3fd35

View file

@ -93,7 +93,7 @@ StaticServlet.prototype.handleRequest = function(req, res) {
return self.sendForbidden_(req, res, path);
// docs rewriting
var REWRITE = /\/(guide|api|cookbook|misc|tutorial)\/.*$/,
var REWRITE = /\/(guide|api|cookbook|misc|tutorial).*$/,
IGNORED = /(\.(css|js|png|jpg)$|partials\/.*\.html$)/,
match;