mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-10 17:00:11 +01:00
Patch confluence URL patterns(#1426)
* patch confluence patterns --------- Co-authored-by: shatfield4 <seanhatfield5@gmail.com>
This commit is contained in:
parent
826ef00da3
commit
7e0b638a2c
@ -12,7 +12,7 @@ const {
|
|||||||
function validSpaceUrl(spaceUrl = "") {
|
function validSpaceUrl(spaceUrl = "") {
|
||||||
// Atlassian default URL match
|
// Atlassian default URL match
|
||||||
const atlassianPattern = new UrlPattern(
|
const atlassianPattern = new UrlPattern(
|
||||||
"https\\://(:subdomain).atlassian.net/wiki/spaces/(:spaceKey)/*"
|
"https\\://(:subdomain).atlassian.net/wiki/spaces/(:spaceKey)*"
|
||||||
);
|
);
|
||||||
const atlassianMatch = atlassianPattern.match(spaceUrl);
|
const atlassianMatch = atlassianPattern.match(spaceUrl);
|
||||||
if (atlassianMatch) {
|
if (atlassianMatch) {
|
||||||
@ -21,8 +21,8 @@ function validSpaceUrl(spaceUrl = "") {
|
|||||||
|
|
||||||
let customMatch = null;
|
let customMatch = null;
|
||||||
[
|
[
|
||||||
"https\\://(:subdomain.):domain.:tld/wiki/spaces/(:spaceKey)/*", // Custom Confluence space
|
"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/display/(:spaceKey)*", // Custom Confluence space + Human-readable space tag.
|
||||||
].forEach((matchPattern) => {
|
].forEach((matchPattern) => {
|
||||||
if (!!customMatch) return;
|
if (!!customMatch) return;
|
||||||
const pattern = new UrlPattern(matchPattern);
|
const pattern = new UrlPattern(matchPattern);
|
||||||
|
Loading…
Reference in New Issue
Block a user