Skip to content

Commit 59e5012

Browse files
author
geisterfurz007
authored
fix: domain finder (#299)
1 parent 14c20aa commit 59e5012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/scripts/src/scrape-groupchats/post-process.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {handleBitLy} from './platform-handlers/bit-ly.js';
44
import {handleLinkTree} from './platform-handlers/link-tree.js';
55

66
const platformDomainFinder =
7-
/https?:\/\/.*?(facebook.com|instagram.com|chat.whatsapp.com|discord.gg|discord.com|t.me).*$/i;
7+
/https?:\/\/(?:.*?\.)?(facebook\.com|instagram\.com|chat\.whatsapp\.com|discord\.gg|discord\.com|t\.me)(?:\/.*)?$/i;
88

99
const domainMap: Record<string, string> = {
1010
'facebook.com': 'facebook',

0 commit comments

Comments
 (0)