From fccc0ef7ca897dfc99e65f5eee743f940e87ccfc Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 17 Sep 2023 23:32:42 +0200 Subject: [PATCH] Fixed bug with non-standard code regex replacements --- svr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svr.js b/svr.js index 40e5a59..4709385 100644 --- a/svr.js +++ b/svr.js @@ -4231,7 +4231,7 @@ if (!cluster.isPrimary) { // Regex match var createdRegex = createRegex(nonStandardCodes[i].regex, true); isMatch = req.url.match(createdRegex) || href.match(createdRegex); - regexI.push(createdRegex); + regexI[i] = createdRegex; } else { // Non-regex match isMatch = nonStandardCodes[i].url == href || (os.platform() == "win32" && nonStandardCodes[i].url.toLowerCase() == href.toLowerCase());