aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVojta Jina2011-10-12 18:25:42 -0700
committerIgor Minar2011-10-13 11:10:20 -0700
commit8e32f3fd351fcdbc30822f1996d567fcbcc42c02 (patch)
tree068abf3a5ca617aad25fc5f3b0138e3de512061a /lib
parent02332107e51a4b00b313c3457b8fa8959c7cb517 (diff)
downloadangular.js-8e32f3fd351fcdbc30822f1996d567fcbcc42c02.tar.bz2
fix(nodeserver): docs rewriting
There can be url /api which does not end with / and we want to rewrite this url as well...
Diffstat (limited to 'lib')
-rw-r--r--lib/nodeserver/server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nodeserver/server.js b/lib/nodeserver/server.js
index 5f85b368..005a2fa5 100644
--- a/lib/nodeserver/server.js
+++ b/lib/nodeserver/server.js
@@ -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;