IG links: Fix links using www subdomain
Some checks failed
CI / CI (push) Has been cancelled

This commit is contained in:
SileNce5k 2026-03-31 08:52:37 +02:00
commit 30eccd0be5
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -9,7 +9,7 @@ module.exports = {
return; return;
} }
let replacedLink = ""; let replacedLink = "";
const regex = /(?<=\/)(instagram)\.com/g const regex = /(?<=\/)((www\.)?instagram)\.com/g
if(args[0].startsWith("https://") || args[0].startsWith("http://")){ if(args[0].startsWith("https://") || args[0].startsWith("http://")){
replacedLink = args[0].replace(regex, "kkinstagram.com"); replacedLink = args[0].replace(regex, "kkinstagram.com");
} }