Skip to content

Commit

Permalink
fix insta regex (#457)
Browse files Browse the repository at this point in the history
* add nodejs

* fix instagram regex

* add typescript
  • Loading branch information
SoraTenshi authored Jul 22, 2024
1 parent e908d6c commit e36ca25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
cairo
pango
biome
nodejs_22
typescript
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
CoreText
]);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/instagram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { BotContext } from "../context.js";
import * as instagramService from "../service/instagramService.js";

const instagramOptions = {
uriPattern: /(?<uri>https?:\/\/(www\.)?instagram\.com\/(?:reel|tv|p)\/.*)\/.*/i,
uriPattern: /(?<uri>https?:\/\/(www\.)?instagram\.com\/(?:reel|tv|p)\/.*)\/?.*/i,
headers: {
"User-Agent":
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.124 Safari/537.36 Edg/102.0.1245.44",
Expand Down

0 comments on commit e36ca25

Please sign in to comment.