diff options
Diffstat (limited to 'src/components/Media.svelte')
| -rw-r--r-- | src/components/Media.svelte | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/components/Media.svelte b/src/components/Media.svelte index 9c2c21f8..6471d190 100644 --- a/src/components/Media.svelte +++ b/src/components/Media.svelte @@ -1,8 +1,6 @@ <script lang="ts"> - export const isImage = (url: string) => - url?.match(/^.*\.(jpg|jpeg|png|webp|gif|avif|svg)/gi); - export const isVideo = (url: string) => - url?.match(/^.*\.(mov|mkv|mp4|avi|m4v|webm)/gi); + export const isImage = (url: string) => url?.match(/^.*\.(jpg|jpeg|png|webp|gif|avif|svg)/gi); + export const isVideo = (url: string) => url?.match(/^.*\.(mov|mkv|mp4|avi|m4v|webm)/gi); export const isAudio = (url: string) => url?.match(/^.*\.(ogg|mp3|wav)/gi); // eslint-disable-next-line @typescript-eslint/no-explicit-any |
