Update index.ts
This commit is contained in:
parent
52bc899440
commit
01a8686542
1 changed files with 2 additions and 2 deletions
|
|
@ -49,12 +49,12 @@ function transformLinks(content: string, config: FixEmbedSettings): string {
|
|||
if (config.tiktok) {
|
||||
result = result.replace(
|
||||
/https?:\/\/(?:www\.)?tiktok\.com(\/[^\s]+)/gi,
|
||||
"https://tnktok.com$1",
|
||||
"https://tiktokez.com$1",
|
||||
);
|
||||
// TikTok short links (vm.tiktok.com)
|
||||
result = result.replace(
|
||||
/https?:\/\/vm\.tiktok\.com\/([A-Za-z0-9]+)\/?/gi,
|
||||
"https://vm.tnktok.com/$1",
|
||||
"https://tiktokez.com$1",
|
||||
);
|
||||
}
|
||||
// Reddit: Replace domain, keep path
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue