From 3be7ae7ff66065fab8e7494c66b8b66ece3663de Mon Sep 17 00:00:00 2001 From: Kid Date: Sat, 24 Aug 2019 19:02:52 +0800 Subject: Exclude profile links in `embed-gist-inline` (#2380) --- source/features/embed-gist-inline.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/features/embed-gist-inline.tsx') diff --git a/source/features/embed-gist-inline.tsx b/source/features/embed-gist-inline.tsx index ebf701e0..45b51f7c 100644 --- a/source/features/embed-gist-inline.tsx +++ b/source/features/embed-gist-inline.tsx @@ -6,7 +6,7 @@ import features from '../libs/features'; const isGist = (link: HTMLAnchorElement): boolean => !link.pathname.includes('.') && // Exclude links to embed files ( - link.hostname.startsWith('gist.') || + (link.hostname.startsWith('gist.') && link.pathname.includes('/', 1)) || // Exclude user links link.pathname.startsWith('gist/') ); -- cgit v1.2.3