From e29d1aa3aa9ea788b5c3271c578abe1627a9665c Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Wed, 24 Jan 2024 18:53:29 +0000 Subject: [PATCH] Fix syntax error from previous commit. --- svr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svr.js b/svr.js index 71c87d5..13cded1 100644 --- a/svr.js +++ b/svr.js @@ -4263,7 +4263,7 @@ if (!cluster.isPrimary) { var postfixPrefix = ""; wwwrootPostfixPrefixesVHost.every(function (currentPostfixPrefix) { if (req.url.indexOf(currentPostfixPrefix) == 0) { - if(currentPostfixPrefix.match(/\/+$/) postfixPrefix = currentPostfixPrefix.replace(/\/+$/,"")); + if (currentPostfixPrefix.match(/\/+$/)) postfixPrefix = currentPostfixPrefix.replace(/\/+$/,""); else postfixPrefix = currentPostfixPrefix; urlWithPostfix = urlWithPostFix.substr(postfixPrefix.length); return false;