From 7e0b638a2c21fe1900c54f2f2d7fae245e7f0f96 Mon Sep 17 00:00:00 2001 From: Timothy Carambat Date: Thu, 16 May 2024 14:15:59 -0700 Subject: [PATCH] Patch confluence URL patterns(#1426) * patch confluence patterns --------- Co-authored-by: shatfield4 --- collector/utils/extensions/Confluence/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/collector/utils/extensions/Confluence/index.js b/collector/utils/extensions/Confluence/index.js index b18ae314..1732d072 100644 --- a/collector/utils/extensions/Confluence/index.js +++ b/collector/utils/extensions/Confluence/index.js @@ -12,7 +12,7 @@ const { function validSpaceUrl(spaceUrl = "") { // Atlassian default URL match const atlassianPattern = new UrlPattern( - "https\\://(:subdomain).atlassian.net/wiki/spaces/(:spaceKey)/*" + "https\\://(:subdomain).atlassian.net/wiki/spaces/(:spaceKey)*" ); const atlassianMatch = atlassianPattern.match(spaceUrl); if (atlassianMatch) { @@ -21,8 +21,8 @@ function validSpaceUrl(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. + "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);