diff --git a/collector/utils/extensions/Confluence/index.js b/collector/utils/extensions/Confluence/index.js
index ff91773cbe3894f867696955d4a790e4416d034e..b18ae3144ccdb5232359e7c8ca8b8edee2de878c 100644
--- a/collector/utils/extensions/Confluence/index.js
+++ b/collector/utils/extensions/Confluence/index.js
@@ -19,19 +19,17 @@ function validSpaceUrl(spaceUrl = "") {
     return { valid: true, result: atlassianMatch };
   }
 
-  // Custom Confluence URL match
-  const customPattern = new UrlPattern(
-    "https\\://(:subdomain.):domain.:tld/wiki/spaces/(:spaceKey)/*"
-  );
-  const customMatch = customPattern.match(spaceUrl);
-
-  // Custom "display" Confluence URL match
-  const customDisplayPattern = new UrlPattern(
-    "https\\://(:subdomain.):domain.:tld/display/(:spaceKey)/*"
-  );
-  const customDisplayMatch = customDisplayPattern.match(spaceUrl);
+  let customMatch = null;
+  [
+    "https\\://(:subdomain.):domain.:tld/wiki/spaces/(:spaceKey)/*", // Custom Confluence space
+    "https\\://(:subdomain.):domain.:tld/display/(:spaceKey)/*", // Custom Confluence space + Human-readable space tag.
+  ].forEach((matchPattern) => {
+    if (!!customMatch) return;
+    const pattern = new UrlPattern(matchPattern);
+    customMatch = pattern.match(spaceUrl);
+  });
 
-  if (customMatch || customDisplayMatch) {
+  if (customMatch) {
     customMatch.customDomain =
       (customMatch.subdomain ? `${customMatch.subdomain}.` : "") + //
       `${customMatch.domain}.${customMatch.tld}`;