From 43e0c726fa5decbb9ec862900d9ccc1f9da637d6 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 17 Mar 2014 15:48:34 -0400 Subject: [PATCH] relaxed isClientScript regex, fixed #1198 --- src/middleware/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/index.js b/src/middleware/index.js index 0a97cdfbaf..51882b8b7d 100644 --- a/src/middleware/index.js +++ b/src/middleware/index.js @@ -144,7 +144,7 @@ function handleErrors(err, req, res, next) { function catch404(req, res, next) { var isLanguage = new RegExp('^' + nconf.get('relative_path') + '/language/[\\w]{2,}/.*.json'), - isClientScript = new RegExp('^' + nconf.get('relative_path') + '\\/src\\/forum(\\/admin)?\\/[\\w]+\\.js'); + isClientScript = new RegExp('^' + nconf.get('relative_path') + '\\/src\\/forum(\\/admin)?\\/.+\\.js'); res.status(404);