Skip to content

Commit

Permalink
ci: remove gif mp4
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Jun 13, 2021
1 parent fd3f554 commit 22fdf5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exampleSite/scripts/fetch_images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Post {
const markdownContent = await Deno.readTextFile(this.path);
// https://docs.github.com/en/github/managing-your-work-on-github/file-attachments-on-issues-and-pull-requests
const regexMarkdownImageLinks =
/https:\/\/user-images.githubusercontent.com\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+\.(png|gif|jpg|jpeg|mp4|mov)/gm;
/https:\/\/user-images.githubusercontent.com\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+\.(png|jpg|jpeg)/gm;
const matches = markdownContent.match(regexMarkdownImageLinks);
if (matches === null) return;
for (const remoteUrl of matches) {
Expand Down

0 comments on commit 22fdf5a

Please sign in to comment.