Skip to content

Commit 619d4d6

Browse files
authored
fix: exclude well-known adobe domains from sharepoint candidates (#783)
1 parent 486c3cb commit 619d4d6

File tree

3 files changed

+111
-14
lines changed

3 files changed

+111
-14
lines changed

package-lock.json

Lines changed: 72 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/extension/url-cache.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@ export function isSharePointHost(url, projects = []) {
3030
return /^[a-z-]+\.sharepoint\.com$/.test(host)
3131
|| !!projects.find((p) => {
3232
const mp = p.mountpoints && p.mountpoints[0];
33-
return !host.endsWith('.google.com') && mp && new URL(mp).host === host;
33+
return mp && new URL(mp).host === host
34+
&& ![
35+
'.google.com',
36+
'.da.live',
37+
'.adobeaemcloud.com',
38+
'.adobecqms.net',
39+
'.adobeio-static.net',
40+
'.adobeioruntime.net',
41+
].some((domain) => host.endsWith(domain));
3442
});
3543
}
3644

0 commit comments

Comments
 (0)