Skip to content

Commit

Permalink
[add] - GIFを対応させた
Browse files Browse the repository at this point in the history
  • Loading branch information
NfoAlex committed Jun 7, 2024
1 parent 97c2a8c commit aa03be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/genLinkPreview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default async function genLinkPreview(
for (let index in urls) {

//もしURLが画像用ならここで処理して終了
if (urls[index].match(/(https?:\/\/.*\.(?:png|jpg))/g) !== null) {
if (urls[index].match(/(https?:\/\/.*\.(?:png|jpg|gif))/g) !== null) {
previewResult[index] = {
contentType: "image",
mediaType: "image",
Expand Down

0 comments on commit aa03be5

Please sign in to comment.