mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-07 07:30:23 +03:00
Merge pull request #5180 from litmus-ritten/master
landscape: altered RemoteContent regexes for images, video, and audio to include period literal.
This commit is contained in:
commit
7e70d529f1
@ -38,10 +38,10 @@ export interface RemoteContentProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const IMAGE_REGEX = new RegExp(
|
export const IMAGE_REGEX = new RegExp(
|
||||||
/(jpg|img|png|gif|tiff|jpeg|webp|webm|svg)$/i
|
/(\.jpg|\.img|\.png|\.gif|\.tiff|\.jpeg|\.webp|\.webm|\.svg)$/i
|
||||||
);
|
);
|
||||||
export const AUDIO_REGEX = new RegExp(/(mp3|wav|ogg|m4a)$/i);
|
export const AUDIO_REGEX = new RegExp(/(\.mp3|\.wav|\.ogg|\.m4a)$/i);
|
||||||
export const VIDEO_REGEX = new RegExp(/(mov|mp4|ogv)$/i);
|
export const VIDEO_REGEX = new RegExp(/(\.mov|\.mp4|\.ogv)$/i);
|
||||||
|
|
||||||
const emptyRef = () => {};
|
const emptyRef = () => {};
|
||||||
export function RemoteContent(props: RemoteContentProps) {
|
export function RemoteContent(props: RemoteContentProps) {
|
||||||
|
Loading…
Reference in New Issue
Block a user