Skip to content

Commit

Permalink
💚 Remove unused mp4 url check
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Mar 1, 2024
1 parent 3971e4a commit 3037771
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ export const convertMessageToWhatsAppMessage = (
export const isImageUrlNotCompatible = (url: string) =>
!isHttpUrl(url) || isGifFileUrl(url) || isSvgSrc(url)

export const isVideoUrlNotCompatible = (url: string) =>
!mp4HttpsUrlRegex.test(url)

export const isHttpUrl = (text: string) =>
text.startsWith('http://') || text.startsWith('https://')

Expand Down

0 comments on commit 3037771

Please sign in to comment.