Explorar o código

fix: render system link detection resets on each find

NGPixel %!s(int64=5) %!d(string=hai) anos
pai
achega
82376c19b9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      server/modules/rendering/html-core/renderer.js

+ 2 - 2
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) {