From 82376c19b9045abffe0a0da26968b0917e7275b1 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Thu, 2 Jan 2020 13:33:27 -0500 Subject: [PATCH] fix: render system link detection resets on each find --- server/modules/rendering/html-core/renderer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/modules/rendering/html-core/renderer.js b/server/modules/rendering/html-core/renderer.js index 4a2fa892..9551d7f4 100644 --- a/server/modules/rendering/html-core/renderer.js +++ b/server/modules/rendering/html-core/renderer.js @@ -28,8 +28,8 @@ module.exports = { // -------------------------------- let internalRefs = [] - const reservedPrefixes = /^\/[a-z]\//gi - const exactReservedPaths = /^\/[a-z]$/gi + const reservedPrefixes = /^\/[a-z]\//i + const exactReservedPaths = /^\/[a-z]$/i const isHostSet = WIKI.config.host.length > 7 && WIKI.config.host !== 'http://' if (!isHostSet) {