Update index.ts

This commit is contained in:
OTKUSteyler 2025-12-24 00:43:15 +01:00 • committed by GitHub
parent cd4679913a
commit 5cdd217017
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,7 @@ function transformLinks(content: string, config: FixEmbedSettings): string {
if (config.twitter) {
result = result.replace(
/https?:\/\/(?:www\.)?(twitter\.com|x\.com)(\/[^\s]+)/gi,
"https://fxtwitter.com$2",
"https://fxupx.com$2",
);
}
// Instagram: Replace domain, keep path