diff --git a/ts-client/client.ts b/ts-client/client.ts index 047d17a..9c35f30 100644 --- a/ts-client/client.ts +++ b/ts-client/client.ts @@ -181,7 +181,7 @@ async function getAddressReverse(lat: number, long: number): Promise { function toLink(url: string): string { let content = url; - const m = url.match("https://instagram.com/(.*)"); + const m = url.match(/https:\/\/instagram\.com\/((?:\w|\.)+)\/?/); if (m) { content = `@${m[1]}`; }