From 8d71098a0fb108c00484735a75934b874598324c Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sun, 12 Jan 2014 14:38:54 -0500 Subject: [PATCH] fixed detection for admin client-side scripts --- src/webserver.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webserver.js b/src/webserver.js index b8cef57a10..591c66faa8 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -307,8 +307,8 @@ if(nconf.get('ssl')) { // 404 catch-all app.use(function (req, res, next) { - var isLanguage = new RegExp("^" + nconf.get('relative_path') + "/language/[\\w]{2,}/.*.json"), - isClientScript = /^\/src\/forum\/[\w]+\.js/; + var isLanguage = new RegExp('^' + nconf.get('relative_path') + '/language/[\\w]{2,}/.*.json'), + isClientScript = new RegExp('^' + nconf.get('relative_path') + '\\/src\\/forum(\\/admin)?\\/[\\w]+\\.js'); res.status(404);