mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-17 18:18:11 +00: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
1 changed files with 8 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue