From 9fa22e5200ce3a9e244d2087cf2296c30148d1a9 Mon Sep 17 00:00:00 2001 From: 3nprob <3nprob@3nprob> Date: Fri, 8 Oct 2021 03:10:06 +0900 Subject: [PATCH] mp4 gallery comments --- src/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.ts b/src/util.ts index 7722998..99b3fec 100644 --- a/src/util.ts +++ b/src/util.ts @@ -3,8 +3,8 @@ export const proxyURL = (url: string): string => export const linkify = (content: string) => content.replace( - /https?:\/\/[^.]*\.imgur.com\/([\/_a-zA-Z0-9-]+)\.gifv/g, - '' + /https?:\/\/[^.]*\.imgur.com\/([\/_a-zA-Z0-9-]+)\.(gifv|mp4)/g, + '' ).replace( /https?:\/\/[^.]*\.imgur.com\/([\/_a-zA-Z0-9-]+\.[a-z0-9A-Z]{2,6})/g, ''