Skip to content

Commit

Permalink
Patch confluence URL patterns(#1426)
Browse files Browse the repository at this point in the history
* patch confluence patterns

---------

Co-authored-by: shatfield4 <seanhatfield5@gmail.com>
  • Loading branch information
timothycarambat and shatfield4 committed May 16, 2024
1 parent 826ef00 commit 7e0b638
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions collector/utils/extensions/Confluence/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
Expand Down

0 comments on commit 7e0b638

Please sign in to comment.