Skip to content

Commit

Permalink
fix: domain finder (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
geisterfurz007 committed May 1, 2024
1 parent 14c20aa commit 59e5012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scripts/src/scrape-groupchats/post-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {handleBitLy} from './platform-handlers/bit-ly.js';
import {handleLinkTree} from './platform-handlers/link-tree.js';

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

const domainMap: Record<string, string> = {
'facebook.com': 'facebook',
Expand Down

0 comments on commit 59e5012

Please sign in to comment.