mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-10 17:00:11 +01:00
1362 custom display confluence url (#1423)
* chore: confluence data connector can now handle custom urls, in addition to default {subdomain}.atlassian.net ones * chore: formatting as per yarn lint * chore: adding /display/ url matching to confluence data connector
This commit is contained in:
parent
a79683065f
commit
cf969adf37
@ -24,7 +24,14 @@ function validSpaceUrl(spaceUrl = "") {
|
||||
"https\\://(:subdomain.):domain.:tld/wiki/spaces/(:spaceKey)/*"
|
||||
);
|
||||
const customMatch = customPattern.match(spaceUrl);
|
||||
if (customMatch) {
|
||||
|
||||
// Custom "display" Confluence URL match
|
||||
const customDisplayPattern = new UrlPattern(
|
||||
"https\\://(:subdomain.):domain.:tld/display/(:spaceKey)/*"
|
||||
);
|
||||
const customDisplayMatch = customDisplayPattern.match(spaceUrl);
|
||||
|
||||
if (customMatch || customDisplayMatch) {
|
||||
customMatch.customDomain =
|
||||
(customMatch.subdomain ? `${customMatch.subdomain}.` : "") + //
|
||||
`${customMatch.domain}.${customMatch.tld}`;
|
||||
|
Loading…
Reference in New Issue
Block a user